undefined is not an object (evaluating 'e.config')
#18906
Labels
authentication
area: authentication, auth, google sign in, password, SAML, password reset, can't log in
🐛 bug
Something isn't working
Issue Summary
It looks like sometimes the
useOAuthFlow
hook fails and does not provide more data because the error returned is undefined. Because of the type cast the whole block fails.Specifically this line:
cal.com/packages/platform/atoms/hooks/useOAuthFlow.ts
Line 28 in ed3579c
See example from a stacktrace from our own app deployments:
Those traces point to this minified code line:
Which is the code for
useOAuthFlow
. So clearly, here:The
err
object is undefined.Steps to Reproduce
See above
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
Actual Results
The refresh token is not properly refreshed as the code fails early, and our error reporting has very little information on the reason.
Expected Results
The refresh token should be refreshed, or at least a
Invalid Refresh Token
error should throw.Technical details
@calcom/atoms
version1.0.78
but the problematic code is still present on the latest versionEvidence
The text was updated successfully, but these errors were encountered: