Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Wildcard Route Protection #37

Open
m-leon opened this issue Jul 20, 2020 · 1 comment
Open

Wildcard Route Protection #37

m-leon opened this issue Jul 20, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@m-leon
Copy link

m-leon commented Jul 20, 2020

Would you accept a PR for a setting to use auth on all routes?

Perhaps using this syntax
use( auth({ appSecret: process.env.TOKEN_SECRET, protectedPaths: true }) );

or

use( auth({ appSecret: process.env.TOKEN_SECRET, protectedPaths: ['Query.*', 'Mutation.*'] }) );

@m-leon m-leon changed the title Protect All Routes Wildcard Route Protection Jul 20, 2020
@Camji55
Copy link
Owner

Camji55 commented Jul 21, 2020

All PRs are welcome 😄 I think having the option to protect all paths would be great!

@Camji55 Camji55 added the enhancement New feature or request label Aug 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants