All Projects → stefan-prokop-cz → verify-apple-id-token

stefan-prokop-cz / verify-apple-id-token

Licence: MIT license
Verify the Apple id token on the server side.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to verify-apple-id-token

node-facebook-twitter-google-github-login
Node, Express, Mongoose, Passport, Facebook, Twitter, Google and Github Authentication (Login)
Stars: ✭ 31 (-36.73%)
Mutual labels:  login, signin
Supertokens Core
Open source alternative to Auth0 / Firebase Auth / AWS Cognito
Stars: ✭ 2,907 (+5832.65%)
Mutual labels:  login, signin
reactjs-login-register-crud
ReactJS CRUD Application, ReactJS FileUpload, ReactJS Sample application, ReactJS Boilerplate, ReactJS Login, ReactJS FileUpload, ReactJS Register
Stars: ✭ 47 (-4.08%)
Mutual labels:  login, token
react-apple-signin-auth
 Apple signin for React using the official Apple JS SDK
Stars: ✭ 58 (+18.37%)
Mutual labels:  login, signin
VerificationCode
简单的滑动验证码JS插件 图片验证码
Stars: ✭ 15 (-69.39%)
Mutual labels:  verify, verification
yoti-java-sdk
The Java SDK for interacting with the Yoti Platform
Stars: ✭ 13 (-73.47%)
Mutual labels:  login, verification
Android Play Safetynet
Samples for the Google SafetyNet Attestation API
Stars: ✭ 195 (+297.96%)
Mutual labels:  verify, verification
google-one-tap
Google One Tap Login
Stars: ✭ 37 (-24.49%)
Mutual labels:  login, signin
react-linkedin-login-oauth2
Easily get Authorization Code from Linked In to log in without redirecting.
Stars: ✭ 83 (+69.39%)
Mutual labels:  login, signin
email-checker
Provides email verification on the go.
Stars: ✭ 116 (+136.73%)
Mutual labels:  verify, verification
yoti-php-sdk
The PHP SDK for interacting with the Yoti Platform
Stars: ✭ 22 (-55.1%)
Mutual labels:  login, verification
Vonage Java Sdk
Vonage Server SDK for Java. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Stars: ✭ 75 (+53.06%)
Mutual labels:  verify, verification
authorize-me
Authorization with social networks
Stars: ✭ 44 (-10.2%)
Mutual labels:  login, signin
auth-flow-react-apollo-saga
Full stack login/register flow with React, Apollo, Redux, Redux-saga and MongoDB.
Stars: ✭ 22 (-55.1%)
Mutual labels:  login, token
react-signin-form
Concept for Sign in / Sign Up form
Stars: ✭ 109 (+122.45%)
Mutual labels:  login, signin
Alerts And Pickers
Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date...
Stars: ✭ 5,267 (+10648.98%)
Mutual labels:  login, signin
AppleSignIn
Library for fast an easy way to implement Apple Sign In.
Stars: ✭ 19 (-61.22%)
Mutual labels:  login, signin
springboot-mongodb-security
Spring Boot, Security, and Data MongoDB Authentication Example
Stars: ✭ 22 (-55.1%)
Mutual labels:  login, signin
cognito-jwt-verifier
Verify ID and access JWT tokens from AWS Cognito in your node/Lambda backend with minimal dependencies.
Stars: ✭ 25 (-48.98%)
Mutual labels:  verify, token
Rverify.js
✅❎ A lightweight image rotation verification plugin.
Stars: ✭ 33 (-32.65%)
Mutual labels:  verify, verification

Build Status Publish Status npm version codecov

Verify Apple idToken

  • Small utility which verifies the Apple idToken
  • You can use it on the backend side
  • Token verification is part of Apple sign-in process
  • The flow is
    • Client app (iOS or Android) will redirect user to the OAuth2 login screen
    • User will login
    • App will receive the tokens
    • App should send the idToken to the backend which will verify it
  • Verification steps implemented:
    • Verify the JWS E256 signature using the server’s public key
    • Verify the nonce for the authentication
    • Verify that the iss field contains https://appleid.apple.com
    • Verify that the aud field is the developer’s client_id
    • Verify that the time is earlier than the exp value of the token

Installation

npm install verify-apple-id-token

Usage

Typescript

import verifyAppleToken from "verify-apple-id-token";

const jwtClaims = await verifyAppleToken({
  idToken: "yourIdToken",
  clientId: "yourAppleClientId",
  nonce: "nonce", // optional
});

jwtClaims.email; // get email of the user

Javascript

const verifyAppleToken = require("verify-apple-id-token").default;

const jwtClaims = await verifyAppleToken({
  idToken: "yourIdToken",
  clientId: "yourAppleClientId",
  nonce: "nonce", // optional
});

Contribution

Thank you for your interest in contributing to verify-apple-id-token! Please see the CONTRIBUTING.md to learn how to do it!

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].