Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions content/lessons/secure-firebase-cloud-functions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ exports.secureEndpoint = functions.https.onRequest((req, res) => {
cors( req, res, () => {


let requestedUid = req.body.uid // resource the user is requsting to modify
let requestedUid = req.body.uid // resource the user is requesting to modify
let authToken = validateHeader(req) // current user encrypted

if (!authToken) {
return res.status(403).send('Unuthorized! Missing auth token!')
return res.status(403).send('Unauthorized! Missing auth token!')
}

return decodeAuthToken(authToken)
Expand Down Expand Up @@ -209,4 +209,4 @@ Then try the request out via an HTML button:
```


That's it for secure Firebase Cloud Function endpoints.
That's it for secure Firebase Cloud Function endpoints.
2 changes: 1 addition & 1 deletion content/terms.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ By accessing this website, you are agreeing to be bound by these website Terms a

### Content Copyright Policy

The site design, logo and video content subject to copyright © 2019-present | Fireship LLC
The site design, logo and video content are subject to copyright © 2019-present | Fireship LLC

User contributions licensed under CC by-SA 3.0 with attribution required.

Expand Down