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
- All projects deleted
Hello, from the appwrite console last week I re-activated some of my old project and published them, yesterday I checked and none of the apps were working, now ...
- Authentication on custom Websocket Serve...
Hi, I want to use a custom Websocket Server (using Bun) for my application. However I cant really figure out authentication on custom servers. Session cookies ...
- cant resume project
Invalid console fingerprint event i try man time