Skip to content

Commit

Permalink
added .env
Browse files Browse the repository at this point in the history
  • Loading branch information
mgscreativa committed Jun 18, 2024
1 parent bd0736e commit 0d852a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
EXPO_PUBLIC_NOTIFICATIONS_AUTH_KEY=XXXXXX
2 changes: 1 addition & 1 deletion App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function sendPushNotification(expoPushToken: string, useFCMv1: boolean = f
await fetch(`https://exp.host/--/api/v2/push/send?useFcmV1=${request}`, {
method: 'POST',
headers: {
// Authorization: 'Bearer ',
Authorization: `Bearer ${process.env.EXPO_PUBLIC_NOTIFICATIONS_AUTH_KEY}`,
Accept: 'application/json',
'Accept-encoding': 'gzip, deflate',
'Content-Type': 'application/json',
Expand Down

0 comments on commit 0d852a3

Please sign in to comment.