chore: rewrite /login page for OAuth, write createUser for the database
This commit is contained in:
@@ -29,6 +29,8 @@ type UserFunctionsHook = () => {
|
||||
logout: () => Promise<void>
|
||||
}
|
||||
|
||||
// TODO: remove login as it is deprecated
|
||||
|
||||
export const useUserFunctions: UserFunctionsHook = () => {
|
||||
const login = async (username: string) => {
|
||||
await fetch(prependBaseUrl(`/api/login`), {
|
||||
|
||||
Reference in New Issue
Block a user