Can anyone guide me(noob) through a simple user/pa...
# prisma-whats-new
e
Can anyone guide me(noob) through a simple user/password authentication on iOS? - After clicking the signup button, i send a create mutation with the fields and query what in return?
i'm currently doing this in 2 steps, createUser -> signinUser
- And how do i get a “JWT token” using GraphCool’s API?
okay i got the token after calling the signinUser mutation, stupid question.
- Is this “token” a “String?” ?
another stupid question, pardon me, please ignore
- Where do i store this “token”? UserDefaults? - How do i reference it again using Swift 3/4 in code to authorise things like a “create post” mutation?
i'm guessing to retrieve the token from local storage and passing it with the mutation?
- How do i check if this token is still valid? I was trying to find some reference online on this as its totally new to me and i’m trying to learn as much as i can but i cant seem to find any iOS GraphQL code examples. I’m trying to stay away from auth0 at the moment as I read there are some people talking about problems with using it in iOS clients. Or should I just use auth0? 😂
n
could you bring this up in the forum? https://www.graph.cool/forum/ 🙂