Skip to content
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

Uncaught Error: Trying to send an unexpected type of value through port auth0authResult: #2

Open
UlisesVD opened this issue Feb 18, 2020 · 0 comments

Comments

@UlisesVD
Copy link

I dont't understand why the only difference is that I am using elm v0.19.1.
and the error is launch when I execute this:
elmApp.ports.auth0authResult.send(result);

the result has this value :
{err: null, ok: {…}}
err: null
ok: {profile: {…}, token: "bBw6AQpOktGxZ2z9HISUIqxHDXnP8xk8"}
proto: Object

that value is received by this type alias:

type alias RawAuthenticationResult =
    { err : Maybe AuthenticationError
    , ok : Maybe LoggedInUser
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant