Skip to content

Commit

Permalink
Merge branch 'main' of github.com:playhaste/haste-sdk into main
Browse files Browse the repository at this point in the history
  • Loading branch information
rallieon committed Sep 16, 2021
2 parents 94a24cd + 0955e5e commit be314fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hastearcade/server",
"version": "1.3.2",
"version": "1.3.3",
"description": "The sdk to be used to empower developers to leverage the Haste Arcade. The SDK is intended to be used in server side code alongside the developers game logic.",
"contributors": [
"Keith LaForce <keith@hastearcade.com>",
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 @@ -74,8 +74,8 @@ export class Haste {
throw new Error(`You must initialize Haste with an environment equal to production or nonproduction.`);
}

const url = buildUrl(configuration.hostProtocol, configuration.host, configuration.port);
if (!configuration) configuration = new HasteConfiguration(environment);
const url = buildUrl(configuration.hostProtocol, configuration.host, configuration.port);
const tokenResponse = await Haste.getJwt(clientId, clientSecret, url, configuration.environment);

configuration.clientId = clientId;
Expand Down

0 comments on commit be314fe

Please sign in to comment.