Skip to content

Commit

Permalink
fix(packages): increment all package versions to update README
Browse files Browse the repository at this point in the history
  • Loading branch information
rallieon committed Aug 19, 2021
1 parent 9f19615 commit f233215
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/models/src/models/arcade.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
export class Arcade {
id: string;
name: string;

constructor(id: string) {
this.id = id;
this.name = '';
}
}
3 changes: 2 additions & 1 deletion packages/server/src/api/haste.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export class Haste {
}

public static async validatePlayerAccess(playerAccessToken: string, authUrl = 'haste-production.us.auth0.com') {
if (isBrowser()) throw new Error(`validatePlayerAccess may only be called from a server environment.`);
if (isBrowser())
throw new Error(`validatePlayerAccess may only be called from a server environment. Do not use in browser.`);
const jwt = await validateAuthenticationToken(playerAccessToken, authUrl);
const playerId = jwt['https://hastearcade.com/playerId'] as string;
return playerId;
Expand Down
2 changes: 2 additions & 0 deletions packages/web/src/util/environmentCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ export const isBrowser = () => {
if (typeof window === 'object') {
return true;
}

return false; // catch all
};

0 comments on commit f233215

Please sign in to comment.