@gtaw-oauth-providers/better-auth
v2.1.2
Published
GTA World OAuth provider for Better-Auth.
Maintainers
Readme
GTA WORLD Oauth Provider for Better-Auth
GTA World OAuth integration for Better-Auth.
Installation
Import and configure provider.
import { betterAuth } from "better-auth";
import { genericOAuth } from "better-auth/plugins";
import { gtawOAuth } from "@gtaw-oauth-providers/better-auth";
export const auth = betterAuth({
plugins: [
genericOAuth({
config: [
// Import gtawOAuth in your genericOAuth plugin configuration
gtawOAuth({
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.
// Other Generic OAuth options
}),
],
})
]
// Your Better-Auth configuration
});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)Other options from the Generic OAuth plugin
Disclaimer
Note: This script was not created by the GTA World team.
