headless-cms
headless-cms copied to clipboard
What is the diffirent from JWT auth token, JWT refresh token, JWR woosession? And about permission
Hi, I tried to use JWT auth token, JWT refresh token they are both worked to query or mutation.
-
JWR refresh tokenhas a lifetime live, right ? I saw JWR auth token expired pretty fast, can I edit time of its? - What is the meaning of
woosession? Do I need care about it ? - admin JWT can query everything, right?
- I add admin JWT refresh to header of Apollo client function, is that safe to use? I need api can query everything include private data like users+ data.
- Should we turn on
Restrict Endpoint to Authenticated Usersfeature to get more secure? I tried and if user need login I must call to server then useadmin JWT refresh tokento mutation =>get user token => return to client => client can query their info on browser. Is this right step? :\
Thank you for any answer.