Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
forms: {
login: {
redirectDelay: 3000,
showMessages : {
error: true,
success: false,
},
strategy: 'password',
},
},
strategies: [
NbOAuth2AuthStrategy.setup({
name: 'password',
clientId: 'Aladdin',
clientSecret: 'open sesame',
clientAuthMethod: NbOAuth2ClientAuthMethod.BASIC,
baseEndpoint: 'http://localhost:4400/api/auth/',
token: {
endpoint: 'token',
grantType: NbOAuth2GrantType.PASSWORD,
class: NbAuthOAuth2JWTToken,
requireValidToken: true,
},
redirect: {
success: '/oauth2-password',
},
}),
],
}),
NbCardModule,
NbLayoutModule,
forms: {
login: {
redirectDelay: 3000,
showMessages : {
error: true,
success: false,
},
strategy: 'password',
},
},
strategies: [
NbOAuth2AuthStrategy.setup({
name: 'password',
clientId: 'Aladdin',
clientSecret: 'open sesame',
clientAuthMethod: NbOAuth2ClientAuthMethod.BASIC,
baseEndpoint: 'http://localhost:4400/api/auth/',
token: {
endpoint: 'token',
grantType: NbOAuth2GrantType.PASSWORD,
class: NbAuthOAuth2JWTToken,
requireValidToken: true,
},
redirect: {
success: '/oauth2-password',
},
}),
],
}),
NbCardModule,
NbLayoutModule,