mnewcomer
KKinde
•Created by mnewcomer on 12/6/2023 in #💻┃support
NextJS App Router v2 getAccessToken() and getToken()
Holy shit @peteswah, thank you so much
7 replies
KKinde
•Created by mnewcomer on 12/6/2023 in #💻┃support
NextJS App Router v2 getAccessToken() and getToken()
7 replies
KKinde
•Created by mnewcomer on 12/6/2023 in #💻┃support
NextJS App Router v2 getAccessToken() and getToken()
Just upgraded to v2.0.12 from v2.0.11. Here's some more context:
This outputs (the "/" route is wrapped with this
<ClientProvider/>
wrapper):
^^ i am logged in here, my user information is available through the code below...
On the server side of that route (which has all been working):
Which get's the user
, isAuthenticated()
and admin
perm correctly7 replies
KKinde
•Created by mnewcomer on 11/22/2023 in #💻┃support
Session Storage Cleared before Callback
@Oli - Kinde Super super useful information. I'll check out those NextJS docs and try to get something similar working with Astro. Also pretty new to Astro so should be a great opportunity to learn about their state management. Thank you so much for putting in the time to get back to me. Hope you have a great rest of your day.
5 replies
KKinde
•Created by mnewcomer on 11/22/2023 in #💻┃support
Session Storage Cleared before Callback
For some further context. After the Session Storage get's cleared out, my Browser Cookies get populated with
Something that is a little odd is that when I
enduser_session_id
and kbtc
keys with domain set to .auth.xxxx.com
. These cookies disappear on redirect/refresh but not navigation.... which might suggest some sort of state issue with how I have astro set up?? I don't have the expertise to say for sure.
Something that is a little odd is that when I
handleLogin
after already being authenticated, Kinde doesn't force me to log back in: implying that my tokens are stored successfully somewhere, but I can't find where. Still issue persits of once logged in. Expected isAuthenticated() -> true
but it returns false
...5 replies