Token Id #384
Answered
by
imtoori
abraraltaf92
asked this question in
Q&A
Token Id
#384
-
How to generate a token ID in dart for production use? |
Beta Was this translation helpful? Give feedback.
Answered by
imtoori
Apr 3, 2021
Replies: 1 comment 2 replies
-
As you can read in the website documentation you usually should send this token from your backend to the client-side when a user registers or logs in. You can use a For quick development, it is also possible to disable token authentication and use client-side generated tokens using |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
xsahil03x
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As you can read in the website documentation you usually should send this token from your backend to the client-side when a user registers or logs in.
You can use a
TokenProvider
to let the StreamChatClient refresh the token automatically once it expiresFor quick development, it is also possible to disable token authentication and use client-side generated tokens using
StreamChatClient.devToken(userId)