CriffisOriginal post
Rank 1: Thread
I am trying to create an emailPassword session with graphql (SSR) and I do not receive a secret. Just an ID
graphql.mutation({
query: `mutation (
$email: String!,
$password: String!,
) {
accountCreateEmailPasswordSession(
email: $email,
password: $password,
) {
_id,
secret
}
}`,
variables: {
email: fields.email,
password: fields.password,
},
})
This is what I get in the log from the request.
I get an _id but an empty secret
Summary
Developers are questioning if the GraphQL session docs are up to date, as there seems to be an issue with the ID and secret correlation. When attempting to set a cookie with the secret and retrieve an account, a permission error occurs. The request for an emailPassword session is returning an empty secret.