Skip to content
Open
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ https://developers.facebook.com/tools/debug/accesstoken/?access_token=ACCESS_TOK
## [Firebase](https://firebase.google.com/)
Requires a **custom token**, and an **API key**.

1. Obtain ID token and refresh token from custom token and API key: `curl -s -XPOST -H 'content-type: application/json' -d '{"token":":custom_token","returnSecureToken":True}' 'https://identitytoolkit.googleapis.com/v1/accounts:signInWithCustomToken?key=:api_key'`
2. Exchange ID token for auth token: `curl -s -XPOST -H 'content-type: application/json' -d '{"idToken":":id_token"}' https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=:api_key'`
1. Obtain ID token and refresh token from custom token and API key: `curl -s -X POST -H 'content-type: application/json' -d '{"token":"custom_token","returnSecureToken":"True"}' 'https://identitytoolkit.googleapis.com/v1/accounts:signInWithCustomToken?key=api_key'`
2. Exchange ID token for auth token: `curl -s -X POST -H 'content-type: application/json' -d '{"idToken":"id_token"}' https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=api_key'`

## [Github Token](https://developer.github.com/v3/)
```
Expand Down