this is in regard of #28 but also went above and beyond..
[x] was able to bumb devDependency versions of everything to latest (optional chaining 🎉)
[x] all functions where it makes sense now use useCallback (which led to plenty of useEffect bugs due to re-creation when I used it)
[x] runRoutes should be more lightweight
[x] runRoutes returns the promised TokenParam, but only for tokens that aren't automatically taken care of anyways
[x] TokenParam can situationally include error & status for errorRoute
[x] just general low hanging fruits like the provider type
There is a token type for email_change, however there is no such function. I assume this is connected to the corresponding gotrue-js issue; should remove it from the interface for the time being then.
Hi,
this is in regard of #28 but also went above and beyond..
useCallback
(which led to plenty of useEffect bugs due to re-creation when I used it)TokenParam
, but only for tokens that aren't automatically taken care of anywayserrorRoute
There is a token type for
email_change
, however there is no such function. I assume this is connected to the corresponding gotrue-js issue; should remove it from the interface for the time being then.Planned usage would still be:
Mainly I wanted to get this PR out so you can take a look at it, I'll probably not get to actually test it this week. Compiles fine though ofc.