Skip to content

chore: silence auth flow control error logs #570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2025

Conversation

vishalvivekm
Copy link
Contributor

Notes for Reviewers

On visiting https://docs.layer5.io, if the user doesn't have a cookie or has an invalid cookie, we deliberately throw an error of "missing or expired token". There's no need to log such error as it's primarily used for flow control.

In the catch block, we handle the error state by toggling sign-in button visibility. The error logging is not useful on live site, so it was recommended to get rid of it.

This PR fixes #

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Vivek Vishal <vishalvivek488@gmail.com>
Copy link

netlify bot commented May 19, 2025

Deploy Preview for bejewelled-pegasus-b0ce81 ready!

Name Link
🔨 Latest commit e9be5f2
🔍 Latest deploy log https://app.netlify.com/projects/bejewelled-pegasus-b0ce81/deploys/682a8e15331af900081fa1b4
😎 Deploy Preview https://deploy-preview-570--bejewelled-pegasus-b0ce81.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@vishalvivekm vishalvivekm merged commit f89e38a into master May 19, 2025
6 checks passed
@vishalvivekm vishalvivekm deleted the vishalvivekm-patch-1 branch May 19, 2025 01:57
leecalcote pushed a commit that referenced this pull request Jun 10, 2025
chore: silence auth flow control error logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants