type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
InterfaceDeclaration
/** Action to assign the editor's document root. */ export interface SetDocumentAction { type: TypeKeys.SET_DOCUMENT; astDoc: AST.AstDocument; }
AnmAtAnm/codewords-fork
codewords_core/src/action/set_document.ts
TypeScript
ArrowFunction
e => e.type === 'token_received'
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
e => { this.initSessionCheck(); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(e) => { if (e.type === 'token_received') { shouldRunSilentRefresh = true; } else if (e.type === 'logout') { shouldRunSilentRefresh = false; } }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
e => e.type === 'token_expires'
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
e => { const event = e as OAuthInfoEvent; if ((listenTo == null || listenTo === 'any' || event.info === listenTo) && shouldRunSilentRefresh) { // this.silentRefresh(params, noPrompt).catch(_ => { this.refreshInternal(params, noPrompt).catch(_ => { this.debug('Automatic s...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
_ => { this.debug('Automatic silent refresh did not work'); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
doc => { return this.tryLogin(options); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
_ => { if (!this.hasValidIdToken() || !this.hasValidAccessToken()) { this.initImplicitFlow(); return false; } else { return true; } }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
_ => { this.clearAccessTokenTimer(); this.clearIdTokenTimer(); this.setupExpirationTimers(); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
() => { this.accessTokenTimeoutSubscription = of( new OAuthInfoEvent('token_expires', 'access_token') ) .pipe(delay(timeout)) .subscribe(e => { this.ngZone.run(() => { this.eventsSubject.next(e); ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
e => { this.ngZone.run(() => { this.eventsSubject.next(e); }); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
() => { this.eventsSubject.next(e); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
() => { this.idTokenTimeoutSubscription = of( new OAuthInfoEvent('token_expires', 'id_token') ) .pipe(delay(timeout)) .subscribe(e => { this.ngZone.run(() => { this.eventsSubject.next(e); ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(resolve, reject) => { if (!fullUrl) { fullUrl = this.issuer || ''; if (!fullUrl.endsWith('/')) { fullUrl += '/'; } fullUrl += '.well-known/openid-configuration'; } if (!this.validateUrlForHttps(ful...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
doc => { if (!this.validateDiscoveryDocument(doc)) { this.eventsSubject.next( new OAuthErrorEvent('discovery_document_validation_error', null) ); reject('discovery_document_validation_error'); ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
jwks => { const result: object = { discoveryDocument: doc, jwks: jwks }; const event = new OAuthSuccessEvent( 'discovery_document_loaded',...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
err => { this.eventsSubject.next( new OAuthErrorEvent('discovery_document_load_error', err) ); reject(err); return; }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
err => { this.logger.error('error loading discovery document', err); this.eventsSubject.next( new OAuthErrorEvent('discovery_document_load_error', err) ); reject(err); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(resolve, reject) => { if (this.jwksUri) { this.http.get(this.jwksUri).subscribe( jwks => { this.jwks = jwks; this.eventsSubject.next( new OAuthSuccessEvent('discovery_document_loaded') ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
jwks => { this.jwks = jwks; this.eventsSubject.next( new OAuthSuccessEvent('discovery_document_loaded') ); resolve(jwks); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
err => { this.logger.error('error loading jwks', err); this.eventsSubject.next( new OAuthErrorEvent('jwks_load_error', err) ); reject(err); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
() => this.loadUserProfile()
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(resolve, reject) => { const headers = new HttpHeaders().set( 'Authorization', 'Bearer ' + this.getAccessToken() ); this.http.get<UserInfo>(this.userinfoEndpoint, { headers }).subscribe( info => { this.debug('useri...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
info => { this.debug('userinfo received', info); const existingClaims = this.getIdentityClaims() || {}; if (!this.skipSubjectCheck) { if ( this.oidc && (!existingClaims['sub'] |...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
err => { this.logger.error('error loading user info', err); this.eventsSubject.next( new OAuthErrorEvent('user_profile_load_error', err) ); reject(err); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(resolve, reject) => { /** * A `HttpParameterCodec` that uses `encodeURIComponent` and `decodeURIComponent` to * serialize and parse URL parameter keys and values. * * @stable */ let params = new HttpParams({ encoder: new WebHttpU...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
tokenResponse => { this.debug('tokenResponse', tokenResponse); this.storeAccessTokenResponse( tokenResponse.access_token, tokenResponse.refresh_token, tokenResponse.expires_in, ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
err => { this.logger.error('Error performing password flow', err); this.eventsSubject.next(new OAuthErrorEvent('token_error', err)); reject(err); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(resolve, reject) => { let params = new HttpParams() .set('grant_type', 'refresh_token') .set('client_id', this.clientId) .set('scope', this.scope) .set('refresh_token', this._storage.getItem('refresh_token')); if (this.dummyClien...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
tokenResponse => { if (tokenResponse.id_token) { return from(this.processIdToken(tokenResponse.id_token, tokenResponse.access_token, true)) .pipe( tap(result => this.storeIdToken(result)), ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
result => this.storeIdToken(result)
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
_ => tokenResponse
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
tokenResponse => { this.debug('refresh tokenResponse', tokenResponse); this.storeAccessTokenResponse( tokenResponse.access_token, tokenResponse.refresh_token, tokenResponse.expires_in, ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
err => { this.logger.error('Error performing password flow', err); this.eventsSubject.next( new OAuthErrorEvent('token_refresh_error', err) ); reject(err); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(e: MessageEvent) => { const message = this.processMessageEventMessage(e); this.tryLogin({ customHashFragment: message, preventClearHashAfterLogin: true, onLoginError: err => { this.eventsSubject.next( ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
err => { this.eventsSubject.next( new OAuthErrorEvent('silent_refresh_error', err) ); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
() => { this.eventsSubject.next(new OAuthSuccessEvent('silently_refreshed')); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
err => this.debug('tryLogin during silent refresh failed', err)
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
url => { iframe.setAttribute('src', url); if (!this.silentRefreshShowIFrame) { iframe.style['display'] = 'none'; } document.body.appendChild(iframe); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
e => e instanceof OAuthErrorEvent
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
e => e.type === 'silently_refreshed'
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
e => { if (e.type === 'silent_refresh_timeout') { this.eventsSubject.next(e); } }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
e => { if (e instanceof OAuthErrorEvent) { throw e; } return e; }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
url => { return new Promise((resolve, reject) => { let windowRef = window.open(url, '_blank', this.calculatePopupFeatures(options)); const cleanup = () => { window.removeEventListener('message', listener); windowRef.close(); ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(resolve, reject) => { let windowRef = window.open(url, '_blank', this.calculatePopupFeatures(options)); const cleanup = () => { window.removeEventListener('message', listener); windowRef.close(); windowRef = null; ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
() => { window.removeEventListener('message', listener); windowRef.close(); windowRef = null; }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(e: MessageEvent) => { const message = this.processMessageEventMessage(e); this.tryLogin({ customHashFragment: message, preventClearHashAfterLogin: true, }).then(() => { cleanup(); ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
() => { cleanup(); resolve(); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
err => { cleanup(); reject(err); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(e: MessageEvent) => { const origin = e.origin.toLowerCase(); const issuer = this.issuer.toLowerCase(); this.debug('sessionCheckEventListener'); if (!issuer.startsWith(origin)) { this.debug( 'sessionCheckEventListener', ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
() => { this.handleSessionChange(); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
() => { this.handleSessionError(); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
() => { window.addEventListener('message', this.sessionCheckEventListener); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
_ => this.debug('silent refresh failed after session changed')
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(e: OAuthEvent) => e.type === 'silently_refreshed' || e.type === 'silent_refresh_timeout' || e.type === 'silent_refresh_error'
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
e => { if (e.type !== 'silently_refreshed') { this.debug('silent refresh did not work after session changed'); this.eventsSubject.next(new OAuthInfoEvent('session_terminated')); this.logOut(true); } }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
() => { this.sessionCheckTimer = setInterval( this.checkSession.bind(this), this.sessionCheckIntervall ); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
error => { console.error('Error in initImplicitFlow', error); this.inImplicitFlow = false; }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
e => e.type === 'discovery_document_loaded'
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
_ => this.initImplicitFlowInternal(additionalState, params)
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
_ => true
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(resolve, reject) => { this.getTokenFromCode(code).then(result => { resolve(); }).catch(err => { reject(err); }); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
result => { resolve(); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
err => { reject(err); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(resolve, reject) => { if (this.customQueryParams) { for (let key of Object.getOwnPropertyNames(this.customQueryParams)) { params = params.set(key, this.customQueryParams[key]); } } this.http.post<TokenResponse>(this.tokenEndpoin...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(tokenResponse) => { this.debug('refresh tokenResponse', tokenResponse); this.storeAccessTokenResponse( tokenResponse.access_token, tokenResponse.refresh_token, tokenResponse.expires_in, ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
result => { this.storeIdToken(result); this.eventsSubject.next(new OAuthSuccessEvent('token_received')); this.eventsSubject.next(new OAuthSuccessEvent('token_refreshed')); resolve(t...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
reason => { this.eventsSubject.next(new OAuthErrorEvent('token_validation_error', reason)); console.error('Error validating tokens'); console.error(reason); reject(reason); ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(err) => { console.error('Error getting token', err); this.eventsSubject.next(new OAuthErrorEvent('token_refresh_error', err)); reject(err); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
result => { if (options.validationHandler) { return options .validationHandler({ accessToken: accessToken, idClaims: result.idTokenClaims, idToken: result.idToken, ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
_ => result
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
result => { this.storeIdToken(result); this.storeSessionState(sessionState); if (this.clearHashAfterLogin) { location.hash = ''; } this.eventsSubject.next(new OAuthSuccessEvent('token_received')); this.c...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
reason => { this.eventsSubject.next( new OAuthErrorEvent('token_validation_error', reason) ); this.logger.error('Error validating tokens'); this.logger.error(reason); return Promise.reject(reason); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
v => v !== this.clientId
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
() => this.loadJwks()
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
atHashValid => { if ( !this.disableAtHashCheck && this.requestAccessToken && !atHashValid ) { const err = 'Wrong at_hash'; this.logger.warn(err); return Promise.reject(err); } return this.chec...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
_ => { const result: ParsedIdToken = { idToken: idToken, idTokenClaims: claims, idTokenClaimsJson: claimsJson, idTokenHeader: header, idTokenHeaderJson: headerJson, idTokenExpiresAt: expiresAtMSec ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
(resolve) => { if (this.rngUrl) { throw new Error( 'createNonce with rng-web-api has not been implemented so far' ); } /* * This alphabet uses a-z A-Z 0-9 _- symbols. * Symbols order was changed for bette...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
_ => this.initCodeFlowInternal(additionalState, params)
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
ArrowFunction
error => { console.error('Error in initAuthorizationCodeFlow'); console.error(error); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
/** * Use this method to configure the service * @param config the configuration */ public configure(config: AuthConfig): void { // For the sake of downward compatibility with // original configuration API Object.assign(this, new AuthConfig(), config); this.config = Objec...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected configChanged(): void { this.setupRefreshTimer(); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
public restartSessionChecksIfStillLoggedIn(): void { if (this.hasValidIdToken()) { this.initSessionCheck(); } }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected restartRefreshTimerIfStillLoggedIn(): void { this.setupExpirationTimers(); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected setupSessionCheck(): void { this.events.pipe(filter(e => e.type === 'token_received')).subscribe(e => { this.initSessionCheck(); }); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
/** * Will setup up silent refreshing for when the token is * about to expire. When the user is logged out via this.logOut method, the * silent refreshing will pause and not refresh the tokens until the user is * logged back in via receiving a new token. * @param params Additional parameter to ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected refreshInternal(params, noPrompt): Promise<TokenResponse|OAuthEvent> { if (this.responseType === 'code') { return this.refreshToken(); } else { return this.silentRefresh(params, noPrompt); } }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
/** * Convenience method that first calls `loadDiscoveryDocument(...)` and * directly chains using the `then(...)` part of the promise to call * the `tryLogin(...)` method. * * @param options LoginOptions to pass through to `tryLogin(...)` */ public loadDiscoveryDocumentAndTryLogin(options...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
/** * Convenience method that first calls `loadDiscoveryDocumentAndTryLogin(...)` * and if then chains to `initImplicitFlow()`, but only if there is no valid * IdToken or no valid AccessToken. * * @param options LoginOptions to pass through to `tryLogin(...)` */ public loadDiscoveryDocumen...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected debug(...args): void { if (this.showDebugInformation) { this.logger.debug.apply(console, args); } }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected validateUrlFromDiscoveryDocument(url: string): string[] { const errors: string[] = []; const httpsCheck = this.validateUrlForHttps(url); const issuerCheck = this.validateUrlAgainstIssuer(url); if (!httpsCheck) { errors.push( 'https for all urls req...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected validateUrlForHttps(url: string): boolean { if (!url) { return true; } const lcUrl = url.toLowerCase(); if (this.requireHttps === false) { return true; } if ( (lcUrl.match(/^http:\/\/localhost($|[:\/])/) || ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected validateUrlAgainstIssuer(url: string) { if (!this.strictDiscoveryDocumentValidation) { return true; } if (!url) { return true; } return url.toLowerCase().startsWith(this.issuer.toLowerCase()); }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected setupRefreshTimer(): void { if (typeof window === 'undefined') { this.debug('timer not supported on this plattform'); return; } if (this.hasValidIdToken()) { this.clearAccessTokenTimer(); this.clearIdTokenTimer(); this.setup...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected setupExpirationTimers(): void { const idTokenExp = this.getIdTokenExpiration() || Number.MAX_VALUE; const accessTokenExp = this.getAccessTokenExpiration() || Number.MAX_VALUE; const useAccessTokenExp = accessTokenExp <= idTokenExp; if (this.hasValidAccessToken() && useAccessT...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected setupAccessTokenTimer(): void { const expiration = this.getAccessTokenExpiration(); const storedAt = this.getAccessTokenStoredAt(); const timeout = this.calcTimeout(storedAt, expiration); this.ngZone.runOutsideAngular(() => { this.accessTokenTimeoutSubscription = ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected setupIdTokenTimer(): void { const expiration = this.getIdTokenExpiration(); const storedAt = this.getIdTokenStoredAt(); const timeout = this.calcTimeout(storedAt, expiration); this.ngZone.runOutsideAngular(() => { this.idTokenTimeoutSubscription = of( ...
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected clearAccessTokenTimer(): void { if (this.accessTokenTimeoutSubscription) { this.accessTokenTimeoutSubscription.unsubscribe(); } }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript
MethodDeclaration
protected clearIdTokenTimer(): void { if (this.idTokenTimeoutSubscription) { this.idTokenTimeoutSubscription.unsubscribe(); } }
vadjs/angular-oauth2-oidc
projects/lib/src/oauth-service.ts
TypeScript