tangled
alpha
login
or
join now
danabra.mov
/
slices
forked from
slices.network/slices
0
fork
atom
Highly ambitious ATProtocol AppView service and sdks
0
fork
atom
overview
issues
pulls
pipelines
remove unused config file
chadtmiller.com
4 months ago
54a1e92c
8c32fdf9
-21
1 changed file
expand all
collapse all
unified
split
frontend-v2
src
config
auth.ts
-21
frontend-v2/src/config/auth.ts
···
1
1
-
/**
2
2
-
* OAuth configuration for the application.
3
3
-
*
4
4
-
* Environment variables should be defined in .env file:
5
5
-
* - VITE_AUTH_BASE_URL: Base URL of the OAuth server
6
6
-
* - VITE_OAUTH_CLIENT_ID: OAuth client ID
7
7
-
* - VITE_OAUTH_CLIENT_SECRET: OAuth client secret (optional for public clients)
8
8
-
*/
9
9
-
10
10
-
export const oauthConfig = {
11
11
-
clientId: import.meta.env.VITE_OAUTH_CLIENT_ID || "",
12
12
-
clientSecret: import.meta.env.VITE_OAUTH_CLIENT_SECRET || "",
13
13
-
authBaseUrl: import.meta.env.VITE_AUTH_BASE_URL || "http://localhost:8081",
14
14
-
redirectUri:
15
15
-
import.meta.env.VITE_OAUTH_REDIRECT_URI ||
16
16
-
`${globalThis.location.origin}/oauth/callback`,
17
17
-
silentRedirectUri:
18
18
-
import.meta.env.VITE_OAUTH_SILENT_REDIRECT_URI ||
19
19
-
`${globalThis.location.origin}/silent-refresh`,
20
20
-
scopes: ["openid", "profile", "atproto", "repo:*"],
21
21
-
};