Use ethereum grant type for getting auth token
This commit is contained in:
parent
956776e24f
commit
eb2206dc20
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ export async function createUser(userData: UserCreateForm): Promise<User> {
|
|||
export async function getAccessToken(user: UserLoginForm): Promise<string> {
|
||||
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, {
|
||||
|
|
Loading…
Reference in a new issue