Skip to content

Pass the login state to web pages

This is a flow that lets the user carry over the login state of the app without logging in again when a web page such as customer support, coupon, community, or web store is opened from the app. The web service server is a server that runs a web service, such as customer support or a web store. Because a web page cannot read the login information that the Hive Axyl SDK in the app holds, the app client obtains a ticket and passes it through the web page URL, and the web service server redeems that ticket for tokens for web pages.

The ticket is a value for web page login that can be redeemed only once within 60 seconds after issuance.

Implementation order

Passing the login state to web pages is handled in order by the app client, the web service server, and the Hive Axyl authentication server.

  1. Issue a ticket: The app client obtains a ticket from the Hive Axyl authentication server.
  2. Open the web page: The app client opens the web page with a URL that has the ticket attached.
  3. Redeem a ticket: The web service server redeems the ticket for tokens for web pages and stores them.
  4. Refresh the tokens: When the access token expires, the web service server refreshes the tokens.

If the ticket or refresh token is invalid, ask the user to open the web page again from the app. When the user opens it again, the app client obtains a ticket again. For how to handle each response, see Response status in each section.

A web page without a web service server handles steps 3 and 4 in the browser. See Redeem in the browser.

Pages in this section