Implement Auth account page

This commit is contained in:
Takeshi Kimata
2024-05-19 20:25:09 +09:00
parent a5b218f55e
commit 076f7c74d4
25 changed files with 119 additions and 40 deletions

View File

@@ -1,4 +1,5 @@
import { UserType } from "@/types/user";
import { avatars } from "@/config/selection";
import Config from "@/config/config";
const apiServer = Config.apiServer;
@@ -50,4 +51,9 @@ async function signIn(signInUser: UserType) {
}
}
export { signUp, signIn };
function getRandomAvatarPath() {
const randomIndex = Math.floor(Math.random() * avatars.length);
return avatars[randomIndex];
}
export { signUp, signIn, getRandomAvatarPath };