# \#js

**URL:** https://community.auth0.com/tag/js/239.md

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

---

## [What is the best way to handle auth with roles for my personal project?](https://community.auth0.com/t/what-is-the-best-way-to-handle-auth-with-roles-for-my-personal-project/87009)

<div class="topic-metadata">

**Author:** [@emily\_dev](https://community.auth0.com/u/emily_dev)\
**Replies:** 1\
**Last updated:** [July 16, 2022, 12:11am UTC](https://community.auth0.com/t/what-is-the-best-way-to-handle-auth-with-roles-for-my-personal-project/87009 "2022-07-16T00:11:23Z")

</div>

I’m new to using Auth0 beyond just the basic start guide and needing advice on the best approach to take to get what I want to achieve. What I am wanting to achieve is having my users register using my own styled regist…

---

## [Multiple page API but wanting to call API from browser](https://community.auth0.com/t/multiple-page-api-but-wanting-to-call-api-from-browser/59774)

<div class="topic-metadata">

**Author:** [@hector.vazquez](https://community.auth0.com/u/hector.vazquez)\
**Replies:** 3\
**Last updated:** [March 25, 2021, 4:06am UTC](https://community.auth0.com/t/multiple-page-api-but-wanting-to-call-api-from-browser/59774 "2021-03-25T04:06:55Z")

</div>

Hello, Still new to Auth0 and I have a question. I’m in the process to create an app that will have a handful of pages; these pages will make calls to a REST API. The SPA JS SDK seems to request authentication for every…

---

## [How to get Sub Claim from Access Token](https://community.auth0.com/t/how-to-get-sub-claim-from-access-token/57499)

<div class="topic-metadata">

**Author:** [@iltimas.doha](https://community.auth0.com/u/iltimas.doha)\
**Replies:** 7\
**Last updated:** [February 10, 2021, 2:45pm UTC](https://community.auth0.com/t/how-to-get-sub-claim-from-access-token/57499 "2021-02-10T14:45:29Z")

</div>

Hello, tl;dr I would like to understand how I can extract the User Sub claim from an Access Token. Context: We’re building an SPA that exclusively uses serverless function (from Vercel) to make authenticated calls to …

---

## [State token change between /authorize and /login](https://community.auth0.com/t/state-token-change-between-authorize-and-login/14330)

<div class="topic-metadata">

**Author:** [@mrpierrot](https://community.auth0.com/u/mrpierrot)\
**Replies:** 2\
**Last updated:** [September 18, 2018, 3:34pm UTC](https://community.auth0.com/t/state-token-change-between-authorize-and-login/14330 "2018-09-18T15:34:46Z")

</div>

Hi, I try to use Passwordless with Lock and Cordova. But I have a bug with auth0-state : I log the requests on /authorize and /login and I see the “state” parameter change when the request redirect from /authorize to /…

---

## [Auth0/cordova npm package is no longer registered](https://community.auth0.com/t/auth0-cordova-npm-package-is-no-longer-registered/7979)

<div class="topic-metadata">

**Author:** [@dave2](https://community.auth0.com/u/dave2)\
**Replies:** 1\
**Last updated:** [August 28, 2017, 5:20pm UTC](https://community.auth0.com/t/auth0-cordova-npm-package-is-no-longer-registered/7979 "2017-08-28T17:20:26Z")

</div>

Your @auth0/cordova npm package is no longer registered and cannot be installed using npm. This was working as of a week ago. npm install @auth0/cordova fails. https://registry.npmjs.org/auth0/cordova/0.2.0 - 404 npm…

---

## [Event based Conditionals and email templates](https://community.auth0.com/t/event-based-conditionals-and-email-templates/7223)

<div class="topic-metadata">

**Author:** [@josh1](https://community.auth0.com/u/josh1)\
**Replies:** 2\
**Last updated:** [June 23, 2017, 8:10am UTC](https://community.auth0.com/t/event-based-conditionals-and-email-templates/7223 "2017-06-23T08:10:43Z")

</div>

Hello, my app has seperate password reset and changed password confirmation emails. These are both directed through the auth0 password change template. I would like to be able to set a flag I can access within the temp…

---

## [Lock 10 for Web - callbacks not working](https://community.auth0.com/t/lock-10-for-web-callbacks-not-working/6146)

<div class="topic-metadata">

**Author:** [@mapman17](https://community.auth0.com/u/mapman17)\
**Replies:** 1\
**Last updated:** [April 10, 2017, 5:25pm UTC](https://community.auth0.com/t/lock-10-for-web-callbacks-not-working/6146 "2017-04-10T17:25:12Z")

</div>

Hi! I am using Lock 10 for Web in redirect mode with great success although there is 1 piece of the puzzle missing. I want users who sign up using email and password to confirm their email before being able to sign in. T…
