-
Notifications
You must be signed in to change notification settings - Fork 266
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
[SDK-1694] Camel case props #22
Conversation
@@ -4,7 +4,7 @@ import withAuthenticationRequired from '../src/with-login-required'; | |||
import { render, screen, waitFor } from '@testing-library/react'; | |||
import { Auth0Client } from '@auth0/auth0-spa-js'; | |||
import Auth0Provider from '../src/auth0-provider'; | |||
import { mocked } from 'ts-jest'; | |||
import { mocked } from 'ts-jest/utils'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix warning from ts-jest
@@ -9,6 +9,13 @@ module.exports = { | |||
], | |||
testURL: 'https://www.example.com/', | |||
testRegex: '/__tests__/.+test.tsx?$', | |||
globals: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage get's messed up when you transpile to es5
in the tests microsoft/TypeScript#13029
getIdTokenClaims: (opts): Promise<IdToken> => | ||
client.getIdTokenClaims(opts), | ||
loginWithRedirect: (opts): Promise<void> => | ||
client.loginWithRedirect(opts), | ||
client.loginWithRedirect(toAuth0LoginRedirectOptions(opts)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to change to redirectUri
in the loginWithRedirect
options too
Description
I've also improved the errors that come from the get token methods (to match the errors from the login methods). And added some info on handling recoverable errors to
EXAMPLES.md
Testing
Checklist
master