Skip to content

Commit

Permalink
feat(clients): auth
Browse files Browse the repository at this point in the history
  • Loading branch information
tristancamejo committed Dec 25, 2022
1 parent 32e1b2f commit 3d63f62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clients/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elytra",
"version": "1.0.0",
"version": "1.1.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": "Tristan Camejo <contact@tristancamejo.com>",
Expand Down
2 changes: 2 additions & 0 deletions clients/js/src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { LangService } from "./services/LangService";
export interface ClientOptions {
apiRoot: string;
lang?: string;
token?: string;
}

export interface ClientResponse<T> {
Expand Down Expand Up @@ -37,6 +38,7 @@ export class Client {
method,
headers: {
"Content-Type": "application/json",
Authorization: this.options.token || "",
},
body: JSON.stringify(body),
});
Expand Down

0 comments on commit 3d63f62

Please sign in to comment.