FEAT: oauth sign in

This commit is contained in:
Gabriel Rosa
2023-01-24 19:19:00 -03:00
parent 28efdf95d9
commit 2bc060b13d
9 changed files with 281 additions and 11 deletions
+9
View File
@@ -157,4 +157,13 @@ export class AuthClientService implements OnModuleInit {
this.authService.AuthVerifyTotpMfa({ accessToken, totp }),
);
}
async getSession(session: string) {
return lastValueFrom(this.authService.AuthGetSession({ session }));
}
async oauthSignIn(data: { username: string; token: string }) {
const { username, token } = data;
return lastValueFrom(this.authService.AuthOauthSignIn({ token, username }));
}
}