superfaceai / service-client

Library provides client for superface backend apis.
MIT License
5 stars 1 forks source link

feat: passwordlessLogin returns possible error response #21

Closed kysely closed 3 years ago

kysely commented 3 years ago

We need to show an error message based on Brain's response during initial passwordlessLogin attempt. Up until now, the client dismissed response details and only passed error with Unexpected status code ${result.status} received.

This changes the way the output of said method behaves. It is now a tagged union of Result/Error outcome.