svelte 3.25 and later won't let you call getContext and setContext
outside of component initialization. This means you need to implement
components inside the Auth0Context that getContext on initialization
then pass them to functions
BREAKING CHANGE: function signature for login, logout, and refreshToken
signinCallback wasn't being called when state was set but not code,
which happens when there are errors. I also did some error handling
the refreshToken calll. This is kind of a quick fix. I need to revisit the
flows here to make sure all the correct things are being done for the
various callback states.
I was forcing a redirect login result. Switch to signinCallback instead
of signinRedirectCallback. signinCallbacks checks the login type
varaible and calls the appropriate redirect, popup, or silent callback
as necessary.