# \#on-the-fly

**URL:** https://community.auth0.com/tag/on-the-fly/927.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [How to implement on-the-fly authentication?](https://community.auth0.com/t/how-to-implement-on-the-fly-authentication/8100)

<div class="topic-metadata">

**Author:** [@hsq125](https://community.auth0.com/u/hsq125)\
**Replies:** 0\
**Last updated:** [September 6, 2017, 2:51am UTC](https://community.auth0.com/t/how-to-implement-on-the-fly-authentication/8100 "2017-09-06T02:51:53Z")

</div>

Hi all, I’m creating a SPA with Angular 4 My use case: pretty simple. I have button that brings the user to a page (via routerLink). The user must be authenticated to access the page. Flow must be as follow: (1) If the…
