Email, Password Supertokens Ok
This commit is contained in:
@@ -2,6 +2,8 @@ import { Inject, Injectable } from '@nestjs/common';
|
||||
import { AuthModuleConfig, ConfigInjectionToken } from '../config.interface';
|
||||
import supertokens from 'supertokens-node';
|
||||
import ThirdPartyEmailPassword from 'supertokens-node/recipe/thirdpartyemailpassword';
|
||||
import EmailPassword from 'supertokens-node/recipe/emailpassword';
|
||||
|
||||
import Session from 'supertokens-node/recipe/session';
|
||||
|
||||
@Injectable()
|
||||
@@ -14,6 +16,7 @@ export class SupertokensService {
|
||||
apiKey: config.apiKey,
|
||||
},
|
||||
recipeList: [
|
||||
EmailPassword.init(),
|
||||
ThirdPartyEmailPassword.init({
|
||||
providers: [
|
||||
ThirdPartyEmailPassword.Google({
|
||||
@@ -34,6 +37,7 @@ export class SupertokensService {
|
||||
teamId: 'YWQCXGJRJL',
|
||||
},
|
||||
}),
|
||||
// ThirdPartyEmailPassword.emailPasswordSignIn({})
|
||||
],
|
||||
}),
|
||||
Session.init({
|
||||
|
||||
Reference in New Issue
Block a user