nextauthz 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -63,6 +63,7 @@ function createAuthContext(option) {
63
63
  const AuthProvider = ({ children }) => {
64
64
  const storage = option?.storage ?? "cookie";
65
65
  const tokenKey = option?.tokenKey ?? "access_token";
66
+ console.log("keys test", tokenKey);
66
67
  (0, import_react.useEffect)(() => {
67
68
  (0, import_react_token_manager.configureTokenManager)({ storage });
68
69
  }, [storage]);
@@ -80,6 +81,7 @@ function createAuthContext(option) {
80
81
  (0, import_react.useEffect)(() => {
81
82
  const storedUser = manager.getSingleToken("user");
82
83
  const token = manager.getSingleToken(tokenKey);
84
+ console.log("token review", token);
83
85
  if (token && !manager.isExpired(token)) {
84
86
  try {
85
87
  setAuth(true);
package/dist/index.mjs CHANGED
@@ -36,6 +36,7 @@ function createAuthContext(option) {
36
36
  const AuthProvider = ({ children }) => {
37
37
  const storage = option?.storage ?? "cookie";
38
38
  const tokenKey = option?.tokenKey ?? "access_token";
39
+ console.log("keys test", tokenKey);
39
40
  useEffect(() => {
40
41
  configureTokenManager({ storage });
41
42
  }, [storage]);
@@ -53,6 +54,7 @@ function createAuthContext(option) {
53
54
  useEffect(() => {
54
55
  const storedUser = manager.getSingleToken("user");
55
56
  const token = manager.getSingleToken(tokenKey);
57
+ console.log("token review", token);
56
58
  if (token && !manager.isExpired(token)) {
57
59
  try {
58
60
  setAuth(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextauthz",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -32,6 +32,9 @@ export function createAuthContext<UserType extends User = User>(option?: {
32
32
  const storage = option?.storage ?? 'cookie'
33
33
  const tokenKey = option?.tokenKey ?? 'access_token'
34
34
 
35
+ console.log('keys test', tokenKey);
36
+
37
+
35
38
  useEffect(() => {
36
39
  configureTokenManager({ storage })
37
40
  }, [storage])
@@ -54,7 +57,10 @@ export function createAuthContext<UserType extends User = User>(option?: {
54
57
 
55
58
  useEffect(() => {
56
59
  const storedUser = manager.getSingleToken('user')
57
- const token = manager.getSingleToken(tokenKey)
60
+ const token = manager.getSingleToken(tokenKey);
61
+
62
+ console.log('token review', token);
63
+
58
64
 
59
65
  if (token && !manager.isExpired(token)) {
60
66
  try {