Skip to content

Commit

Permalink
fix: wtf expo
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed Apr 13, 2024
1 parent 7ce1a81 commit 627b88e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ async function registerForPushNotifications(user: AuthenticatedState) {
return
}

const { data: pushToken } = await Notifications.getExpoPushTokenAsync({ projectId: Constants.extra.eas.projectId })
const config = Constants.expoConfig
if (!config) return

const { data: pushToken } = await Notifications.getExpoPushTokenAsync({ projectId: config.extra?.eas.projectId })
await fetch('https://leden.djoamersfoort.nl/notifications/token', {
method: 'POST',
headers: {
Expand Down

0 comments on commit 627b88e

Please sign in to comment.