Persist OIDC logins on HTTP refresh (#105)

This relates to #70, where refreshing the webpage causes the user to
need to login again, due to homeassistant not storing the user's session
token `hassTokens`.
This commit is contained in:
Evan Zhang
2025-07-30 11:35:38 -04:00
committed by GitHub
parent 764326a9e1
commit c13eb7c438

View File

@@ -41,7 +41,7 @@ class OIDCFinishView(HomeAssistantView):
# Return redirect to the main page for sign in with a cookie
return web.HTTPFound(
location="/",
location="/?storeToken=true",
headers={
# Set a cookie to enable autologin on only the specific path used
# for the POST request, with all strict parameters set