Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

system authenticated


Please, I'm not able to keep the system authenticated. I login, access the API without problems. But when creating a new service, I can't configure the Url to keep the system authenticated...


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


Hi,

Could you please share with us more details.
Also some links about API and deployments: https://preview.keenthemes.com/metronic8/angular/docs/mock-backend, https://preview.keenthemes.com/metronic8/angular/docs/deployment.

Regards,
Keenthemes support



I imagine that there is a token authentication flow in the template to keep the user logged in... Keep the Authorization: Bearer with the token... that is, is the template customizable or will I have to develop the flow? How we implement the Refresh Token?



Hi Clelia,

We don't have RefreshToken support, only basic bearer authorization example. I think your RefreshToken solution also should be based on HTTPInterceptor.
Maybe Jason Watmore's article will direct you to your solution: https://jasonwatmore.com/post/2020/05/22/angular-9-jwt-authentication-with-refresh-tokens

Regards,
Keenthemes support



Hi, thanks a lot for the tip!
I read Jason Watmore's article and it helped me a lot!
Thank you so much!
Regards
Clélia


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(