@gtaw-oauth-providers/authjs
v1.0.1
Published
GTA World OAuth provider for AuthJS.
Downloads
4
Maintainers
Readme
GTA WORLD Oauth Provider for Authjs
GTA World OAuth integration for AuthJS.
Installation
Import and configure provider.
import NextAuth from "next-auth";
import { GTAWorldProvider } from "@gtaw-oauth-providers/authjs";
export const { handlers, signIn, signOut, auth, unstable_update } = NextAuth({
providers: [
GTAWorldProvider({
clientId: process.env.GTAW_OAUTH_CLIENT_ID,
clientSecret: process.env.GTAW_OAUTH_CLIENT_SECRET,
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.
