How to refresh token with different endpoint?

56 Views Asked by At

I have an Ember app in which I use ember-simple-auth for authentication. My backend is structure in a way that the endpoint for authorization is different from the endpoint for refreshing.

How can I specify a different endpoint for refreshing? So far, I only found serverTokenEndpoint which specifies both auth and refreshing endpoints at once.

1

There are 1 best solutions below

0
jrjohnson On

Have you checked out https://github.com/jpadilla/ember-simple-auth-token? It's an extension to ember-simple-auth that abstracts some of the token work out and includes a specific configuration for serverTokenRefreshEndpoint. We've been happy using it happily for years.