We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$apiUrl
1 parent c3b8d4c commit 1c37173Copy full SHA for 1c37173
1 file changed
apps/frontend/app/utils/auth.ts
@@ -4,16 +4,16 @@ export interface getSignInUrlParams {
4
query?: Record<string, string>
5
}
6
export function getSignInUrl({ query }: getSignInUrlParams = {}) {
7
- const runtimeConfig = useRuntimeConfig()
+ const { $apiUrl } = useNuxtApp()
8
9
- return withQuery(`${runtimeConfig.public.backendUrl}/api/auth/login`, {
+ return withQuery(`${$apiUrl}/api/auth/login`, {
10
path: useRequestURL().pathname,
11
...query,
12
})
13
14
15
export function getSignOutUrl() {
16
17
18
- return `${runtimeConfig.public.backendUrl}/api/auth/logout`
+ return `${$apiUrl}/api/auth/logout`
19
0 commit comments