forked from polka_billy/porridger
Added useId hook for id retrival from token
This commit is contained in:
@ -24,7 +24,11 @@ function LoginPage() {
|
||||
password: formData.get('password') as string
|
||||
}
|
||||
|
||||
const token = import.meta.env.PROD ? await doAuth(data, newAccount) : 'a'
|
||||
const token = import.meta.env.PROD ? (
|
||||
await doAuth(data, newAccount)
|
||||
) : (
|
||||
'eyJhbGciOiJIUzI1NiJ9.eyJpZCI6IjUifQ.1S46AuB9E4JN9yLkqs30yl3sLlGLbgbrOCNKXiNK8IM'
|
||||
)
|
||||
|
||||
if (token) {
|
||||
setToken(token)
|
||||
|
Reference in New Issue
Block a user