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
To me in the docs it looks like id === secret, but if I use the secret to set a cookie and use this cookie to retrieve an account, I get a permission error, stating that the account is a guest, even though it's using a emailPassword session secret (id?)?
Recommended threads
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...
- One to many 2 way, console UI not correc...
Hey, seems I'm facing the exactly same issue with this one: https://github.com/appwrite/appwrite/issues/6016 Since this Github issue stay open for so long, let ...
- Server Down
Appwrite services are down. When will they start working again?