Skip to content

Commit

Permalink
Fix slash error with AzAuth luuxis#23
Browse files Browse the repository at this point in the history
  • Loading branch information
luuxis committed Oct 20, 2024
1 parent 5206317 commit 5fbb49d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Authenticator/AZauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export default class AZauth {
skinAPI: string;

constructor(url: string) {
this.url = `${url}/api/auth`;
this.skinAPI = `${url}/api/skin-api/skins`;
this.url = new URL('/api/auth', url).toString();
this.skinAPI = new URL('/api/skin-api/skins', url).toString();
}

async login(username: string, password: string, A2F: any = null) {
Expand Down Expand Up @@ -49,7 +49,8 @@ export default class AZauth {
id: response.id,
banned: response.banned,
money: response.money,
role: response.role
role: response.role,
verified: response.email_verified
},
meta: {
online: false,
Expand Down Expand Up @@ -92,7 +93,8 @@ export default class AZauth {
id: response.id,
banned: response.banned,
money: response.money,
role: response.role
role: response.role,
verified: response.email_verified
},
meta: {
online: false,
Expand Down

0 comments on commit 5fbb49d

Please sign in to comment.