Skip to content

Commit

Permalink
feat(app): authenticate with Twitch API
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-h1 committed Nov 19, 2023
1 parent 7aea322 commit f573159
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/getTokens.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import AsyncStorage from '@react-native-async-storage/async-storage';

const getTokens = async () => {
const anonToken = await AsyncStorage.getItem('anonToken');
const token = await AsyncStorage.getItem('token');
const [anonToken, token] = await Promise.all([
await AsyncStorage.getItem('anonToken'),
await AsyncStorage.getItem('token'),
]);
return {
anonToken,
token,
Expand Down

0 comments on commit f573159

Please sign in to comment.