Never Please Meanies

    sashido-parse-server-apple-auth-adapter

    1.0.1 • Public • Published

    sashido-parse-server-apple-auth-adapter

    Authenticate to parse server with Apple

    How to use it?

    1) Install the module

    npm i -S sashido-parse-server-apple-auth-adapter

    2) Add this module when creating ParseServer

    import { ParseServer } from 'parse-server'
    import authApple from 'sashido-parse-server-apple-auth-adapter'
    ...
    const parserServer = new ParseServer({
      ...
      auth: {
        apple: authApple
      }
    })

    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": {
         "apple": {
         "token": "{{TOKEN}}",
         "id": "{{ID}}"
         }
        }
    }'

    Install

    npm i sashido-parse-server-apple-auth-adapter

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.95 kB

    Total Files

    3

    Last publish

    Collaborators

    • pivanov