adonis-ally-tiktok
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

License

MIT

Package Sidebar

Install

npm i adonis-ally-tiktok

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

11.9 kB

Total Files

7

Last publish

Collaborators

  • monojson