Skip to content

Commit

Permalink
fix: using auth-common to common constant (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
aversini authored Jun 15, 2024
1 parent dc7ba10 commit da42e51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions packages/auth-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build:check": "tsc",
"build:js": "vite build",
Expand Down Expand Up @@ -44,6 +42,7 @@
"react-dom": "18.3.1"
},
"dependencies": {
"@versini/auth-common": "workspace:../auth-common",
"@versini/ui-hooks": "3.0.0",
"uuid": "10.0.0"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { AUTH_TYPES } from "@versini/auth-common";
import { useLocalStorage } from "@versini/ui-hooks";
import { useEffect, useRef, useState } from "react";
import { v4 as uuidv4 } from "uuid";
Expand All @@ -12,9 +13,7 @@ type AuthState = {
accessToken?: string;
refreshToken?: string;
};
export const AUTH_TYPES = {
ID_TOKEN: "id_token",
};

const EXPIRED_SESSION =
"Oops! It looks like your session has expired. For your security, please log in again to continue.";

Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit da42e51

Please sign in to comment.