gladly-team / next-firebase-auth

Simple Firebase authentication for all Next.js rendering strategies
https://nfa-example-git-v1x-gladly-team.vercel.app/
MIT License
1.34k stars 290 forks source link

Ensure an ID token is valid before attempting to get a refresh token #540

Closed kmjennison closed 2 years ago

kmjennison commented 2 years ago

In addition, call onVerifyTokenError when an ID token is invalid and we cannot refresh it.

Closes #531. Improved debug logs were added in #534.

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nfa-example ✅ Ready (Inspect) Visit Preview Aug 25, 2022 at 8:13PM (UTC)
codecov[bot] commented 2 years ago

Codecov Report

Merging #540 (7b02724) into v1.x (4abfd12) will decrease coverage by 0.12%. The diff coverage is 100.00%.

:exclamation: Current head 7b02724 differs from pull request most recent head 2b2aa05. Consider uploading reports for the commit 2b2aa05 to get more accurate results

@@            Coverage Diff             @@
##             v1.x     #540      +/-   ##
==========================================
- Coverage   99.39%   99.26%   -0.13%     
==========================================
  Files          30       30              
  Lines         659      682      +23     
  Branches      218      225       +7     
==========================================
+ Hits          655      677      +22     
- Misses          4        5       +1     
Impacted Files Coverage Δ
src/firebaseAdmin.js 98.73% <100.00%> (-0.04%) :arrow_down:
src/setAuthCookies.js 100.00% <100.00%> (ø)
src/cookies.js 97.77% <0.00%> (-2.23%) :arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.