Skip to content

Commit

Permalink
fix(release): setting up release
Browse files Browse the repository at this point in the history
  • Loading branch information
rallieon committed Aug 19, 2021
1 parent 5ceb0b1 commit 602ecd1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const haste = await Haste.build(process.env.HASTE_SERVER_CLIENT_ID, process.env.

The client id and secret are defined in the developer portal on your game page. See image below for reference:

![](docs/assets/gameserverkeys.png)
![](https://github.com/playhaste/haste-sdk/blob/main/docs/assets/gameserverkeys.png)

**NOTE: It is recommneded to create an abstraction (service, lib, etc) around the haste-sdk in your codebase. This will allow you to initialize one haste object.**

Expand Down Expand Up @@ -176,7 +176,7 @@ const hasteClient = await HasteClient.build(process.env.HASTE_GAME_CLIENT_ID);
The client id used here can be found in the developer portal and will be for your game _not your server_. See image below for a reference point:
![](docs/assets/gameclientkeys.png)
![](https://github.com/playhaste/haste-sdk/blob/main/docs/assets/gameclientkeys.png)
#### Login
Expand Down
1 change: 0 additions & 1 deletion packages/models/src/models/arcade.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export class Arcade {
id: string;
name: string;
createdAt: Date;

constructor(id: string) {
this.id = id;
Expand Down
2 changes: 1 addition & 1 deletion packages/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const haste = await Haste.build(process.env.HASTE_SERVER_CLIENT_ID, process.env.

The client id and secret are defined in the developer portal on your game page. See image below for reference:

![](docs/assets/gameserverkeys.png)
![](https://github.com/playhaste/haste-sdk/blob/main/docs/assets/gameserverkeys.png)

**NOTE: It is recommneded to create an abstraction (service, lib, etc) around the haste-sdk in your codebase. This will allow you to initialize one haste object.**

Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/api/haste.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class Haste {
clientSecret: string,
configuration?: HasteConfiguration,
): Promise<Haste> {
if (isBrowser()) throw new Error(`build may only be called from a server environment. Do not use in browser.`);
if (isBrowser()) throw new Error(`build may only be called from a server environment.`);

if (!clientId || clientId.length === 0) {
throw new Error(`You must initialize Haste with a client id.`);
Expand Down
2 changes: 1 addition & 1 deletion packages/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const hasteClient = await HasteClient.build(process.env.HASTE_GAME_CLIENT_ID);

The client id used here can be found in the developer portal and will be for your game _not your server_. See image below for a reference point:

![](docs/assets/gameclientkeys.png)
![](https://github.com/playhaste/haste-sdk/blob/main/docs/assets/gameclientkeys.png)

#### Login

Expand Down
5 changes: 1 addition & 4 deletions packages/web/src/api/hasteClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ export class HasteClient {
}

public static async build(clientId: string, domain = 'haste-production.us.auth0.com') {
if (!isBrowser())
throw new Error(
`Haste client build may only be called from a browser based environment. Please do not run this from a server.`,
);
if (!isBrowser()) throw new Error(`Haste client build may only be called from a browser based environment.`);

const auth0 = await createAuth0Client({
domain: domain,
Expand Down

0 comments on commit 602ecd1

Please sign in to comment.