Skip to content

Instantly share code, notes, and snippets.

@erikfig
Created April 1, 2020 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikfig/5c96d8756efa7b1705d6b07c5e834523 to your computer and use it in GitHub Desktop.
Save erikfig/5c96d8756efa7b1705d6b07c5e834523 to your computer and use it in GitHub Desktop.
export function getToken() {
return new Promise((resolve) => resolve('token'))
}
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