Skip to content

Instantly share code, notes, and snippets.

View Staninbui's full-sized avatar
🧸
Focusing

Staninbui

🧸
Focusing
  • shanghai
View GitHub Profile
@keidarcy
keidarcy / apple.ts
Last active September 30, 2024 23:46
`Sign in with Apple` Nodejs typescript full example sample code
import axios from 'axios';
import * as jwt from 'jsonwebtoken';
import * as jwksClient from 'jwks-rsa';
import jwtDecode, { JwtHeader } from 'jwt-decode';
/**
* @see {@link https://github.com/expo/expo/blob/sdk-44/packages/expo-apple-authentication/src/AppleAuthentication.types.ts#L147}
* An object representing the tokenized portions of the user's full name. Any of all of the fields
* may be `null`. Only applicable fields that the user has allowed your app to access will be nonnull.
*/