@bitkidd/adonis-ally-apple
Version:
An Apple driver for Adonis.js Ally
27 lines (21 loc) • 642 B
Markdown
The package has been configured successfully!
Make sure to first define the mapping inside the `contracts/ally.ts` file as follows.
```ts
import { AppleDriver, AppleDriverConfig } from '@bitkidd/adonis-ally-apple/build/standalone'
declare module '@ioc:Adonis/Addons/Ally' {
interface SocialProviders {
// ... other mappings
apple: {
config: AppleDriverConfig
implementation: AppleDriver
}
}
}
```
And add new environment variables inside `ent.ts`:
```ts
APPLE_APP_ID: Env.schema.string(),
APPLE_TEAM_ID: Env.schema.string(),
APPLE_CLIENT_ID: Env.schema.string(),
APPLE_CLIENT_SECRET: Env.schema.string(),
```