fix(nhost-js): improvements to Session guard to avoid conflict with ProviderSession (#3662)

This commit is contained in:
David Barroso
2025-11-04 10:53:37 +01:00
committed by GitHub
parent 55bda3f56b
commit a68d261d8e

View File

@@ -46,7 +46,7 @@ export const updateSessionFromResponseMiddleware = (
return body.session || null;
}
if ("accessToken" in body && "refreshToken" in body) {
if ("accessToken" in body && "refreshToken" in body && "user" in body) {
// Session
return body;
}