Andersson
Andersson
KKinde
Created by Andersson on 6/20/2024 in #💻┃support
Getting updated user data from NextJS App Router Middleware.
How can i get updated user data from middleware. i tried refreshing the token before getting user data with
await refreshTokens();
await refreshTokens();
const user = await getUser();
const user = await getUser();
. My issue is that i tried deleting the user from the kinde ui and refreshed my nextjs app to see if i would get redirected to "/" because there is no user, but the user was still autheticated.
3 replies