auth example: Make authMode setting (popup / redirect) sticky.
Previously redirects were causing the reloaded page to default back
to popup mode. This solves that by saving the current choice in the url.