Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function configureOAuthProviderIdentityServer(): TnsOaProvider {
const identityServerProviderOptions: TnsOaProviderOptionsIdentityServer = {
openIdSupport: 'oid-full',
issuerUrl: 'https://demo.identityserver.io',
clientId: 'native.code',
urlScheme: 'org.nativescript.demoangular',
redirectUri: 'org.nativescript.demoangular://auth',
scopes: ['openid', 'profile', 'email', 'offline_access'],
};
const identityServerProvider = new TnsOaProviderIdentityServer(
identityServerProviderOptions
);
return identityServerProvider;
}