Ghost
New
flaxo
/
ghost
public
forked from
ghost/ghost
Source code of Ghost - On Ghost
Star
0
Fork
0
Code
Issues
0
Pull requests
0
6214ba1
34
branches
Go to file
t
Code
ghost
apps
web
src
lib
auth-client.ts
you can now star repos
ba5217d
a month ago
11 lines · 355 B
1
import
{
createAuthClient
}
from
"
better-auth/react
"
;
2
import
{
usernameClient
}
3
import
{
apiKeyClient
}
4
5
import
{
API_URL
}
6
7
export
const
authClient
=
8
baseURL
:
API_URL
,
9
basePath
:
"
/api/auth
"
,
10
plugins
:
[
usernameClient
()
,
11
}
)
;
from
"
better-auth/client/plugins
"
;
from
"
@better-auth/api-key/client
"
;
from
"
@/lib/env
"
;
createAuthClient
(
{
apiKeyClient
()]
,