Skip to content

Commit

Permalink
remove token
Browse files Browse the repository at this point in the history
  • Loading branch information
popovvasile committed Mar 31, 2024
1 parent 31df644 commit 5cdc710
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .env

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ src/\.DS_Store
src/assets/fonts

\.DS_Store

.env
tags
2 changes: 1 addition & 1 deletion src/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const SHAPES_URL = urlFromEnv("SHAPES_EXT");
const LOGIN_URL = urlFromEnv("LOGIN_EXT")
// In order for this way of authorization to work I had to modify json-server-auth module
// to disable token expiration jwt.verify(token, constants_1.JWT_SECRET_KEY, {ignoreExpiration:true});
const token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRpbWVtYXAtZGVmYXVsdC1yb2JvdGljLXVzZXJAc3RocmFuZG9tLmNvbSIsImlhdCI6MTcwMTk3OTI0OSwiZXhwIjoxNzAxOTgyODQ5LCJzdWIiOiIxIn0.apD8fHI57lG68PctTL-qem7CqDzc7QXBUAYv6nhGAYA"
const token = urlFromEnv("JWT_SECRET_KEY")

const domainMsg = (domainType) =>
`Something went wrong fetching ${domainType}. Check the URL or try disabling them in the config file.`;
Expand Down

0 comments on commit 5cdc710

Please sign in to comment.