Auth0 Home Blog Docs

Passing data to the hosted login page

auth0
login
hosted-login-page
state

#1

Is there any way to pass information from our app (using Auth0.js v9) to our hosted login page? Nothing in the documentation stands out except for state, but that doesn’t seem to be accessible from the login page.

Our use case is that, when the user’s session expires, we want to send them to the login page with an additional message shown explaining why they have to login (without the extra step of showing a dialog on our own page before we redirect them). Of course, we don’t want that message to appear for people that are logging in for the first time.


#2

I’ve noticed some references to appState in the Auth0JS code. If I supply that parameter to authorize(), then it seems to be available in the hosted login page (under the query parameter app_state.

It’s not mentioned in the documentation, though. Is that something we can rely on?