@@ -54,7 +54,14 @@ import NextAuth from "next-auth"
5454import GitLab from " next-auth/providers/gitlab"
5555
5656export const { handlers, auth, signIn, signOut } = NextAuth ({
57- providers: [GitLab ],
57+ providers: [
58+ // Default (gitlab.com)
59+ GitLab ,
60+ // Self-hosted example
61+ GitLab ({
62+ baseUrl: " https://gitlab.example.com" ,
63+ }),
64+ ],
5865})
5966```
6067
@@ -67,7 +74,14 @@ import GitLab from "@auth/qwik/providers/gitlab"
6774
6875export const { onRequest, useSession, useSignIn, useSignOut } = QwikAuth$ (
6976 () => ({
70- providers: [GitLab ],
77+ providers: [
78+ GitLab ,
79+ GitLab ({
80+ instance: {
81+ baseUrl: " https://gitlab.example.com"
82+ }
83+ })
84+ ],
7185 })
7286)
7387```
@@ -80,7 +94,12 @@ import { SvelteKitAuth } from "@auth/sveltekit"
8094import GitLab from " @auth/sveltekit/providers/gitlab"
8195
8296export const { handle, signIn, signOut } = SvelteKitAuth ({
83- providers: [GitLab ],
97+ providers: [
98+ GitLab ,
99+ GitLab ({
100+ baseUrl: " https://gitlab.example.com" ,
101+ }),
102+ ],
84103})
85104```
86105
@@ -91,7 +110,17 @@ export const { handle, signIn, signOut } = SvelteKitAuth({
91110import { ExpressAuth } from " @auth/express"
92111import GitLab from " @auth/express/providers/gitlab"
93112
94- app .use (" /auth/*" , ExpressAuth ({ providers: [GitLab ] }))
113+ app .use (
114+ " /auth/*" ,
115+ ExpressAuth ({
116+ providers: [
117+ GitLab ,
118+ GitLab ({
119+ baseUrl: " https://gitlab.example.com" ,
120+ }),
121+ ],
122+ })
123+ )
95124```
96125
97126 </Code.Express >
0 commit comments