sashido-parse-server-microsoft-auth-adapter
v1.0.1
Published
Authenticate to parse server with Microsoft
Downloads
3
Maintainers
Readme
sashido-parse-server-microsoft-auth-adapter
Authenticate to parse server with Microsoft
How to use it?
1) Install the module
npm i -S sashido-parse-server-microsoft-auth-adapter
2) Add this module when creating ParseServer
import { ParseServer } from 'parse-server'
import authMicrosoft from 'sashido-parse-server-microsoft-auth-adapter'
...
const parserServer = new ParseServer({
...
auth: {
microsoft: authMicrosoft
}
})
3) Using Firebase access token in our project
- Get Parse access token by POST a raw data to
/1/users
curl -X POST \
{{API_ENDPOINT}}/1/users \
-H 'content-type: application/json' \
-H 'x-parse-application-id: {{APP_ID}}' \
-d '{
"authData": {
"microsoft": {
"token": "{{TOKEN}}",
"id": "{{ID}}"
}
}
}'