ory / elements

Ory Elements is a component library that makes building login, registration and account pages for Ory a breeze. Check out the components library on Chromatic https://www.chromatic.com/library?appId=63b58e306cfd32348fa48d50
https://ory.sh
Apache License 2.0
85 stars 44 forks source link

fix: api calls error handling #91

Closed misamu closed 1 year ago

misamu commented 1 year ago

Implements error handling for example nextjs-spa API calls handling all returned error codes

Flow handling changed to follow the react-spa format

Fix issues with refreshing pages

Related Issue or Design Document

Checklist

Further comments

Issue 71 Issue 79 Issue 80

Benehiko commented 1 year ago

Oh wait, it seems I spoke too soon! I checked the recovery flow and it seems a bit broken on code recovery.

After submitting the code I get: image

It seems the handleError function is assuming the error 422 can be handled on the recovery flow instead of settings. image image

Steps to reproduce:

  1. Ensure no session
  2. Ensure Recovery code strategy is used
  3. Navigate to Recovery screen
  4. Submit email and enter code received
  5. Error happens
CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.