I've turned off refreshtokens as we currently do not use them.
app/authenticators/oauth2.js
export default OAuth2PasswordGrant.extend({
serverTokenEndpoint: ENV.APP.harrierServerTokenEndPoint,
refreshAccessTokens: false,
makeRequest: function(url, data) {
...
After 12 hours our users token expires and they are correctly taken to the login route.
My end goal is to display a message on the login route is they came there because of token expiry, i.e.
{{if fromExpire 'Your session expired, please login again' ''}}
I'm happy to populate fromExpire
property from a url query param or otherwise. The step I'm missing is how to get Ember Simple Auth to tell the login route it is coming from token expiry, as opposed to a first time user or the user having logged themselves out.
Aucun commentaire:
Enregistrer un commentaire