Created
April 19, 2020 16:10
-
-
Save jakerobers/846c655a72b54a90e27b11f734b74219 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AuthService } from './authService' | |
const IS_AUTHENTICATED = process.env.REACT_APP_IS_AUTHENTICATED | |
export default class MockAuthService implements AuthService { | |
async login() { | |
console.info('Mocking login initialization.') | |
} | |
async logout() { | |
console.info('Mocking logout.') | |
} | |
async isAuthenticated() { | |
return Promise.resolve(IS_AUTHENTICATED); | |
} | |
async getJwtToken() { | |
return Promise.resolve('some.jwt.token') | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment