Skip to content

Instantly share code, notes, and snippets.

@erikfig
Created Apr 1, 2020
Embed
What would you like to do?
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