AndrewPH
AndrewPH
KKinde
Created by Michael on 3/19/2025 in #💻┃support
Refresh token of removed user from organization
Also looking for answers on this - when I dig into the code I see this comment though which doesn't look promising re. RSC:
refreshTokens: async () => {
try {
// this will ALWAYS fail in an RSC as Cookies cannot be modified there.
// refreshTokens is technically available in an RSC via getKindeServerSession,
// but it won't work.
// Maybe we should provide user feedback on this?
const response = await kindeClient.refreshTokens(
await sessionManager(req, res),
);
return response;
} catch (error) {
if (config.isDebugMode) {
console.error(error);
}
return null;
}
},
refreshTokens: async () => {
try {
// this will ALWAYS fail in an RSC as Cookies cannot be modified there.
// refreshTokens is technically available in an RSC via getKindeServerSession,
// but it won't work.
// Maybe we should provide user feedback on this?
const response = await kindeClient.refreshTokens(
await sessionManager(req, res),
);
return response;
} catch (error) {
if (config.isDebugMode) {
console.error(error);
}
return null;
}
},
14 replies