DEV Community

Zainul Abdin
Zainul Abdin

Posted on • Originally published at github.com

Single page application security ( for Typescript projects)

@zainabed/soteria is Single page application security, It reduces amount of HTTP server calls by providing client side authorization. It provides APIs to validate user permissions against the secure area of application without consulting with server APIs.
These validation can be performed on application routing or on REST API calls.

It is an implementation of @zainabed/security specification APIs.

Top comments (2)

Collapse
 
joshuapetryk profile image
Joshua Petryk

How does it do this? How can you authenticate without HTTP requests to a backend?

Collapse
 
zainabed profile image
Zainul Abdin

Thanks for this question. Authentication always happen at server side, this library allow us to capture athenticated user response and it's roles or permissions from Http request then its interface authorize user to access secure area of application without consulting Server via Http request.