mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix issue with OAuth setting incorrect initial session data (#9964)
* Fix issue with OAuth setting incorrect initial session data * Fix issue with OpenID setting incorrect initial session data
This commit is contained in:
@@ -145,8 +145,8 @@ export class OAuth2AuthDriver extends LocalAuthDriver {
|
||||
return (await this.fetchUserId(identifier)) as string;
|
||||
}
|
||||
|
||||
async login(user: User, sessionData: SessionData): Promise<SessionData> {
|
||||
return this.refresh(user, sessionData);
|
||||
async login(user: User): Promise<SessionData> {
|
||||
return this.refresh(user, null);
|
||||
}
|
||||
|
||||
async refresh(user: User, sessionData: SessionData): Promise<SessionData> {
|
||||
|
||||
@@ -158,8 +158,8 @@ export class OpenIDAuthDriver extends LocalAuthDriver {
|
||||
return (await this.fetchUserId(identifier)) as string;
|
||||
}
|
||||
|
||||
async login(user: User, sessionData: SessionData): Promise<SessionData> {
|
||||
return this.refresh(user, sessionData);
|
||||
async login(user: User): Promise<SessionData> {
|
||||
return this.refresh(user, null);
|
||||
}
|
||||
|
||||
async refresh(user: User, sessionData: SessionData): Promise<SessionData> {
|
||||
|
||||
Reference in New Issue
Block a user