@nauth-toolkit/social-apple
v0.2.6
Published
Apple Sign In provider for nauth-toolkit — web and native flows
Maintainers
Readme
@nauth-toolkit/social-apple
Apple Sign In provider for nauth-toolkit.
Adds Sign in with Apple with support for web redirect flows and native iOS token verification. Handles authorization code exchange, identity token validation, and user profile retrieval. Automatically links Apple accounts to existing users by email.
Part of nauth-toolkit. Requires
@nauth-toolkit/core.
Install
npm install @nauth-toolkit/social-appleEnable in your auth config:
const authConfig = {
social: {
apple: {
enabled: true,
clientId: process.env.APPLE_CLIENT_ID,
teamId: process.env.APPLE_TEAM_ID,
keyId: process.env.APPLE_KEY_ID,
privateKey: process.env.APPLE_PRIVATE_KEY,
},
},
};NestJS — import the module and it auto-registers:
import { AppleSocialAuthModule } from '@nauth-toolkit/social-apple/nestjs';
@Module({
imports: [NAuthModule.forRoot(authConfig), AppleSocialAuthModule],
})
export class AuthModule {}Related packages
| Package | Purpose |
| --- | --- |
| @nauth-toolkit/social-google | Google OAuth 2.0 |
| @nauth-toolkit/social-facebook | Facebook Login |
See the full package list in the core README.
Free to use. See license.
