adonis-ally-tiktok
v1.0.2
Published
An ally driver for TikTok
Downloads
21
Maintainers
Readme
Adonis Ally TikTok Driver
A TikTok driver for AdonisJS Ally.
Getting started
1. Install the package
Install the package from your command line.
npm install --save adonis-ally-tiktok
2. Validate environment variables
TIKTOK_CLIENT_ID: Env.schema.string(),
TIKTOK_CLIENT_SECRET: Env.schema.string(),
TIKTOK_REDIRECT_CALLBACK: Env.schema.string(),
3. Add variables to your ally configuration
const allyConfig: AllyConfig = {
// ... other drivers
tiktok: TikTokService({
clientId: env.get('TIKTOK_CLIENT_ID')!,
clientSecret: env.get('TIKTOK_CLIENT_SECRET')!,
callbackUrl: env.get('TIKTOK_REDIRECT_CALLBACK')!,
}),
}
Scopes
You can pass an array of scopes in your configuration, for example ['user.info.basic']
. You have a full list of scopes in the TikTok Scopes Reference
How it works
You can learn more about AdonisJS Ally in the documentation. And learn about the implementation in the ally-starter-kit repository.