Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147899 | Sep 27,2019 02:27 AM UTC | Oct 18,2020 05:27 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: DateRangePicker |
Hi, im building a sort of an spa app with angular and nodejs. This app will call some api from a provider that the user will choose and authenticate with. Now, I want to implement route guarding to prevent someone navigating to a route that displays api info while he is not authorized ( does not have access token ). My question is, what is the best practice to check if a user have an access token and is authorized while using multilple providers. I have thought about implementing REST endpoints from express.js for each provider and return if the user have an access token, therefore in my angular app I would have to request every endpoint and activate my route if authorized. However, I feel like this might not be the best solution. Should I assemble the logic to one endpoint in the backend ?
Hi, im building a sort of an spa app with angular and nodejs. This app will call some api from a provider that the user will choose and authenticate with. Now, I want to implement route guarding to prevent someone navigating to a route that displays api info while he is not authorized ( does not have access token ). My question is, what is the best practice to check if a user have an access token and is authorized while using multilple providers. I have thought about implementing REST endpoints from express.js for each provider and return if the user have an access token, therefore in my angular app I would have to request every endpoint and activate my route if authorized. However, I feel like this might not be the best solution. Should I assemble the logic to one endpoint in the backend ?
Hi, im building a sort of an spa app with angular and nodejs. This app will call some api from a provider that the user will choose and authenticate with. Now, I want to implement route guarding to prevent someone navigating to a route that displays api info while he is vshare not authorized ( does not have access token ). My question is, what is the best practice to check if a user have an access token and is authorized while using multilple providers. I have thought about implementing REST endpoints from express.js for each provider and return if the user have an access token, therefore in my angular app I would have to request every endpoint and activate my route if authorized. However, I feel like this might not be the best solution. Should I assemble the logic to one endpoint in the backend ? https://discord.software/ FetLife
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.