Created
April 1, 2020 20:48
-
-
Save erikfig/5c96d8756efa7b1705d6b07c5e834523 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
export function getToken() { | |
return new Promise((resolve) => resolve('token')) | |
} |
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 { getToken } from './auth'; | |
const init = async () => { | |
const token = await getToken(); | |
console.log(token); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment