@gtaw-oauth-providers/adonisjs-ally
v2.0.1
Published
GTA World OAuth provider for AdonisJS Ally.
Downloads
32
Maintainers
Readme
GTA WORLD Oauth Provider for AdonisJS Ally
GTA World OAuth integration for AdonisJS Ally.
Installation
Import and configure provider in your config/ally.ts.
import { GTAWDriver } from "@gtaw-oauth-providers/adonisjs-ally";
const allyConfig = defineConfig({
gtaw: GTAWDriver({
clientId: env.get("GTAW_OAUTH_CLIENT_ID"),
clientSecret: env.get("GTAW_OAUTH_CLIENT_SECRET"),
callbackUrl: `${env.get("APP_URL")}/api/auth/gtaw/callback`,
server: "fr", // if you're targeting GTA World France. If not, omit.
}),
});Options
server"en"or"fr"(default: ``"en"```.Define the appropriate base URL for the target server. (example, "fr" sets the base URL of the OAuth endpoint to
https://ucp-fr.gta.world)
Disclaimer
Note: This script was not created by the GTA World team.
