diff --git a/src/api/users.ts b/src/api/users.ts index 99839f1..5f99df7 100644 --- a/src/api/users.ts +++ b/src/api/users.ts @@ -64,8 +64,8 @@ export async function createUser(userData: UserCreateForm): Promise { export async function getAccessToken(user: UserLoginForm): Promise { const url = `${BACKEND_URL}/oauth/token` const tokenRequestData = { - grant_type: "password", - username: user.wallet_address, + grant_type: "ethereum", + wallet_address: user.wallet_address, password: user.signature, } const response = await http(url, {