Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <!-- | |
| @description : | |
| @author : Amit Singh | |
| @group : | |
| @last modified on : 02-02-2021 | |
| @last modified by : Amit Singh | |
| Modifications Log | |
| Ver Date Author Modification | |
| 1.0 02-02-2021 Amit Singh Initial Version | |
| --> |
| <!-- | |
| @description : | |
| @author : Amit Singh | |
| @group : | |
| @last modified on : 03-24-2021 | |
| @last modified by : Amit Singh | |
| Modifications Log | |
| Ver Date Author Modification | |
| 1.0 03-24-2021 Amit Singh Initial Version | |
| --> |
| import React, { useState, useEffect, useContext } from 'react' | |
| import createAuth0Client from '@auth0/auth0-spa-js' | |
| const DEFAULT_REDIRECT_CALLBACK = () => | |
| window.history.replaceState({}, document.title, window.location.pathname) | |
| export const Auth0Context = React.createContext() | |
| export const useAuth0 = () => useContext(Auth0Context) | |
| let _initOptions |
| abstract class AuthService { | |
| // Subject tracks the current token, or is null if no token is currently | |
| // available (e.g. refresh pending). | |
| private subject = new BehaviorSubject<string|null>(null); | |
| readonly refreshToken: Observable<any>; | |
| readonly token: Observable<string>; | |
| constructor() { | |
| // refreshToken, when subscribed, gets the new token from the backend, |
| import { Http, Request, RequestOptions, RequestOptionsArgs, Response, ConnectionBackend, Headers } from "@angular/http"; | |
| import { Observable } from "rxjs/Observable"; | |
| import "rxjs/add/observable/fromPromise"; | |
| import "rxjs/add/operator/mergeMap"; | |
| export interface InterceptorConfigOptional { | |
| headerName?: string; | |
| headerPrefix?: string; | |
| noTokenError?: boolean; | |
| } |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
#A curated list of great resources for the job search
###General Advice:
###Practice interview questions: