Add support for a 'silent' mode
See original GitHub issueFeature request
Firstly, thanks for the great library and continued support 🙏.
My current team has encountered a situation where it would be preferable to allow authentication to fail silently, returning null
rather than an Error
.
It’s currently possible to do this by passing { fallbackError: null }
, however it’s neither TypeScript compliant nor officially supported.
I’m happy to make a PR with the change, if / when a solution is decided upon.
Describe the solution you’d like
Add a new option, { silent: boolean }
, informing the middleware resolver to return null
if authorization fails.
Describe alternatives you’ve considered
Allow fallbackError
to accept null
.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:10
Top Results From Across the Web
How to put your iPhone on vibrate, ring, or silent mode
On iPhone 7 and later, go to Settings > Sounds & Haptics. On earlier iPhone models, go to Settings > Sounds. Choose what...
Read more >Limit interruptions with Do Not Disturb on Android - Android Help
You can silence your phone with Do Not Disturb. This mode can mute sound, stop vibration, and block visual disturbances. You can pick...
Read more >How To Turn OFF Silent Mode On iPhone or iPad? | AirBeamTV
While there's no direct way to turn silent mode off in Settings, you can do it by using the AssistiveTouch method we've described...
Read more >Apple iPhone - Turn Silent Mode On / Off - Verizon
Here's how to turn Silent Mode on or off if your iPhone doesn't ring or vibrate or you want it to.
Read more >I need to turn silent mode on or off. | Apple iPhone SE (2020)
To silence your device quickly, toggle the Ring/Silent switch above the VOLUME buttons. When Silent mode is enabled/disabled, a notification will appear at ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@maticzav - great to hear! Not sure if I’ll find time today, but I should have a cycle to work on this within the next week or two.
Thank you for hijacking this! It slipped out of my radar. @jgnieuwhof I have a very similar view on how permissions work - I like this kind of thinking. 🙌🏿
Besides that, let’s implement the
silent
option. If you could create a PR with tests and short documentation, I could merge it as soon as tomorrow.