Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
savayer committed Feb 19, 2024
2 parents e1268c0 + bb1b999 commit 81c961d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions repository/modules/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ class AuthModule extends HttpFactory implements IAuthModule {
},
);

console.log(data.token);

useCookie('token', {
expires: new Date(data.expired_at),
expires: new Date(data.expires_at),
}).value = data.token;
} catch (error) {
console.error(error);
Expand All @@ -49,7 +47,7 @@ class AuthModule extends HttpFactory implements IAuthModule {
);

useCookie('token', {
expires: new Date(data.expired_at),
expires: new Date(data.expires_at),
}).value = data.token;
} catch (error) {
console.error(error);
Expand Down
2 changes: 1 addition & 1 deletion repository/modules/auth/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export type tokenType = {
token_type: string;
token: string;
expired_at: Date;
expires_at: Date;
};

export interface IAuthModule {
Expand Down

0 comments on commit 81c961d

Please sign in to comment.