Skip to content

Instantly share code, notes, and snippets.

import {Injectable} from '@angular/core';
import {environment} from '../../environments/environment';
import {Device} from '@capacitor/device';
import {Capacitor} from '@capacitor/core';
import {SignInWithApple, SignInWithAppleOptions, SignInWithAppleResponse} from '@capacitor-community/apple-sign-in';
type AppleToken = {
token: string;
device_name: string;
name?: string;