fix(nhost-js): improvements to Session guard to avoid conflict with ProviderSession (#3662)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user