chore: Update example app to autoStart on oauth
Description (from commit)
- This fixes the issue where the config UI pops up after a successful oauth handshake
- We do this by knowing that the handshake state is loaded into "localStorage" and updating the "originalUrl" with "autoStart" param
Screenshot
- PLEASE NOTE! There's a known OAuth bug. Please cherry-pick fix(oauth): Use url safe base64 (!258 - merged) when testing this locally.
- Follow these steps to create an OAuth application in your local GDK.
- Use
localStorage.removeItem('gitlab/web-ide/oauth/...OAUTH_CLIENT_ID.../token')
in your browser console to clear the saved token and require an OAuth handshake. - Notice that after the OAuth handshake the Web IDE auto starts instead of reshowing the config UI.
Before | After |
---|---|
20231110_example_app_autostart_before | 20231110_example_app_autostart_after |
Edited by Paul Slaughter