A TikTok driver for AdonisJS Ally.
Install the package from your command line.
npm install --save adonis-ally-tiktok
TIKTOK_CLIENT_ID: Env.schema.string(),
TIKTOK_CLIENT_SECRET: Env.schema.string(),
TIKTOK_REDIRECT_CALLBACK: Env.schema.string(),
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')!,
}),
}
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
You can learn more about AdonisJS Ally in the documentation. And learn about the implementation in the ally-starter-kit repository.
Table of contents