How to implement Remember Me option on login page


#1

I have I login page with username & password with Oauth2 login. My boss ask put “remember me” option for the user checkbox for remembering login 30 days.

  • From consent app point. How to tell Oauth2 server should remember user for 30 days (may this value is set in the cookie?). via Hydra SDK?
  • For logout, I use revoke access token? So how to tell Oauth2 server must clean cookie?
  • How about minimum version or Ory Hydra/SDK support this features?

#2

From consent app point. How to tell Oauth2 server should remember user for 30 days (may this value is set in the cookie?). via Hydra SDK?

With the remember and rememberFor keys in the login response

For logout, I use revoke access token? So how to tell Oauth2 server must clean cookie?

There is a new endpoint in beta.5 for this, see: https://www.ory.sh/docs/guides/master/hydra/3-overview/1-oauth2#revoking-consent-and-login-sessions

How about minimum version or Ory Hydra/SDK support this features?

Currently 1.0.0-beta.5