question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for a 'silent' mode

See original GitHub issue

Feature 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:open
  • Created 3 years ago
  • Reactions:4
  • Comments:10

github_iconTop GitHub Comments

2reactions
jgnieuwhofcommented, Jan 7, 2021

@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.

2reactions
maticzavcommented, Jan 7, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found