As a developer, I want to be able to choose between the HashRouter and the BrowserRouter.
Solution
Modify the DataProvider's handleCallback function and useSupabaseAccessToken to retrieve query params when using a URL Hash or history url.
Other
Improve documentation
How to test
BrowserRouter
Launch demo
Through the Authentication dashboard sent a reset email to an user. You can see the email sent in Inbucket. Instead of clicking the link, copy it and change the redirect_to parameter from http://localhost:8000 to http://localhost:8000/auth-callback.
HashRouter
Remove from demo App.ts
Check that public/auth-callback/index.html is created
Same step as BrowserRouter 3, but set redirect_to with http://localhost:8000/auth-callback/index.html
Problem
As a developer, I want to be able to choose between the HashRouter and the BrowserRouter.
Solution
Modify the DataProvider's handleCallback function and useSupabaseAccessToken to retrieve query params when using a URL Hash or history url.
Other
Improve documentation
How to test
BrowserRouter
redirect_to
parameter fromhttp://localhost:8000
tohttp://localhost:8000/auth-callback
.HashRouter
App.ts
public/auth-callback/index.html
is createdredirect_to
withhttp://localhost:8000/auth-callback/index.html