@@ -11,7 +11,7 @@ Before using these endpoints you need to configure the OAuth provider in your pr
1111
12121 . Go to ** Project Settings** and add your frontend URL as the ** Site URL** (e.g., ` https://myapp.com ` ).
13132 . Go to ** Auth → Social Auth** and select GitHub or Google.
14- 3 . Copy the read-only ** Callback URL** shown by urBackend (e.g., ` https://api.ub.bitbros .in/api/userAuth/social/github/callback ` ).
14+ 3 . Copy the read-only ** Callback URL** shown by urBackend (e.g., ` https://api.urbackend .in/api/userAuth/social/github/callback ` ).
15154 . Register that callback URL in the provider's OAuth app settings (GitHub: ** Developer Settings → OAuth Apps** ; Google: ** Cloud Console → Credentials** ).
16165 . Paste the provider's ** Client ID** and ** Client Secret** into urBackend and enable the provider.
1717
@@ -36,11 +36,11 @@ Redirects the user's browser to the provider login page. Because this is a brows
3636``` javascript
3737// Redirect the user to start the OAuth flow
3838window .location .href =
39- ' https://api.ub.bitbros .in/api/userAuth/social/github/start?x-api-key=pk_live_YOUR_KEY' ;
39+ ' https://api.urbackend .in/api/userAuth/social/github/start?x-api-key=pk_live_YOUR_KEY' ;
4040
4141// Or for Google:
4242window .location .href =
43- ' https://api.ub.bitbros .in/api/userAuth/social/google/start?x-api-key=pk_live_YOUR_KEY' ;
43+ ' https://api.urbackend .in/api/userAuth/social/google/start?x-api-key=pk_live_YOUR_KEY' ;
4444```
4545
4646After the user authenticates with the provider, urBackend redirects them to:
@@ -146,7 +146,7 @@ function AuthCallback() {
146146 }
147147
148148 // Exchange rtCode for refresh token
149- const res = await fetch (' https://api.ub.bitbros .in/api/userAuth/social/exchange' , {
149+ const res = await fetch (' https://api.urbackend .in/api/userAuth/social/exchange' , {
150150 method: ' POST' ,
151151 headers: {
152152 ' Content-Type' : ' application/json' ,
0 commit comments