Skip to content

Commit

Permalink
Set tokenRequired default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
sirdiego committed May 18, 2020
1 parent a99a470 commit 517fb3a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/node_modules
/node_modules
/.idea
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules
.github
.github
1 change: 1 addition & 0 deletions CognitoAuthScheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export default class CognitoAuthScheme {
const DEFAULTS = {
tokenType: "Bearer",
globalToken: true,
tokenRequired: true,
tokenName: "Authorization",
autoFetchUser: true,
userPoolId: undefined,
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Edit `nuxt.config.js`:
cognito: {
tokenType: "Bearer",
globalToken: true,
tokenRequired: true,
tokenName: "Authorization",
autoFetchUser: true,
userPoolId: process.env.AWS_COGNITO_USER_POOL_ID,
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sirdiego/nuxt-auth-cognito-scheme",
"version": "1.0.2",
"version": "1.0.3",
"description": "Use amazon-cognito-identity-js with the Nuxt.js Auth Module.",
"main": "index.js",
"author": "diego <[email protected]>",
Expand Down

0 comments on commit 517fb3a

Please sign in to comment.