Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Commit

Permalink
fix: removing redundant login calls (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
moliva authored Aug 16, 2019
1 parent 0bf16a3 commit 7735835
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/shared/world/profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ async function mapSpecToAvatar(avatar: AvatarSpec): Promise<Avatar> {

export async function fetchProfile(uuid: string = '') {
const auth = new Auth()
await auth.login()

const request = await auth.createRequest(`${getServerConfigurations().profile}/profile${uuid ? '/' + uuid : ''}`)
const response = await fetch(request)
Expand All @@ -156,7 +155,6 @@ export async function fetchProfile(uuid: string = '') {

export async function createProfile(avatar: AvatarSpec) {
const auth = new Auth()
await auth.login()

const body = JSON.stringify(avatar)
const options = {
Expand Down

0 comments on commit 7735835

Please sign in to comment.