Skip to content

Commit

Permalink
Add the new icon and additional improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bcbogdan committed Oct 24, 2024
1 parent 38e9404 commit 33a5c4f
Show file tree
Hide file tree
Showing 12 changed files with 59 additions and 11 deletions.
9 changes: 8 additions & 1 deletion v2/emailpassword/user-roles/protecting-routes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ import { OAuthVerifyTokensDisclaimer }from "/src/components/OAuthDisclaimer"

# Protecting API and frontend routes

<OAuthVerifyTokensDisclaimer />
:::caution

This guide applies to scenarios which involve **SuperTokens Session Access Tokens**.

If you are implementing [**Unified Login**](/docs/unified-login/introduction), that uses **OAuth2 Access Tokens**, please check our [separate page](/docs/unified-login/customizations/verify-tokens) that shows you how to validate them.
You will have to check for the `roles` claim in the token payload.

:::

## Protecting API routes

Expand Down
9 changes: 8 additions & 1 deletion v2/passwordless/user-roles/protecting-routes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ import { OAuthVerifyTokensDisclaimer }from "/src/components/OAuthDisclaimer"

# Protecting API and frontend routes

<OAuthVerifyTokensDisclaimer />
:::caution

This guide applies to scenarios which involve **SuperTokens Session Access Tokens**.

If you are implementing [**Unified Login**](/docs/unified-login/introduction), that uses **OAuth2 Access Tokens**, please check our [separate page](/docs/unified-login/customizations/verify-tokens) that shows you how to validate them.
You will have to check for the `roles` claim in the token payload.

:::

## Protecting API routes

Expand Down
2 changes: 1 addition & 1 deletion v2/src/components/OAuthDisclaimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function OAuthVerifyTokensDisclaimer() {
</div>
<div className="admonition-content">
<p>
This guide only applies to scenarios in which involve{" "}
This guide only applies to scenarios which involve{" "}
<strong>SuperTokens Session Access Tokens</strong>.
</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion v2/src/components/recipeBoxes/guides.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
{
"title": "Unified Login",
"icon": "micro",
"icon": "unified-login",
"path": "/docs/unified-login/introduction"
}
],
Expand Down
4 changes: 2 additions & 2 deletions v2/src/plugins/codeTypeChecking/jsEnv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@
"socketio": "^1.0.0",
"supertokens-auth-react": "github:supertokens/supertokens-auth-react#0.48",
"supertokens-auth-react-script": "github:supertokens/supertokens-auth-react#0.46",
"supertokens-node": "github:supertokens/supertokens-node#21.0",
"supertokens-node": "github:supertokens/supertokens-node#feat/add_clientId_secret_and_refreshTokenRotation_settings",
"supertokens-node7": "npm:[email protected]",
"supertokens-react-native": "^5.0.0",
"supertokens-web-js": "github:supertokens/supertokens-web-js#0.14",
"supertokens-web-js-script": "github:supertokens/supertokens-web-js#0.13",
"supertokens-website": "^20.0.1",
"supertokens-website": "github:supertokens/supertokens-website#20.1",
"supertokens-website-script": "github:supertokens/supertokens-website#20.0",
"typescript": "^4.9.5",
"vue": "^3.4.35"
Expand Down
3 changes: 3 additions & 0 deletions v2/static/img/guides/unified-login-orange.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions v2/static/img/guides/unified-login.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion v2/thirdparty/user-roles/protecting-routes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ import { OAuthVerifyTokensDisclaimer }from "/src/components/OAuthDisclaimer"

# Protecting API and frontend routes

<OAuthVerifyTokensDisclaimer />
:::caution

This guide applies to scenarios which involve **SuperTokens Session Access Tokens**.

If you are implementing [**Unified Login**](/docs/unified-login/introduction), that uses **OAuth2 Access Tokens**, please check our [separate page](/docs/unified-login/customizations/verify-tokens) that shows you how to validate them.
You will have to check for the `roles` claim in the token payload.

:::

## Protecting API routes

Expand Down
9 changes: 8 additions & 1 deletion v2/thirdpartyemailpassword/user-roles/protecting-routes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ import { OAuthVerifyTokensDisclaimer }from "/src/components/OAuthDisclaimer"

# Protecting API and frontend routes

<OAuthVerifyTokensDisclaimer />
:::caution

This guide applies to scenarios which involve **SuperTokens Session Access Tokens**.

If you are implementing [**Unified Login**](/docs/unified-login/introduction), that uses **OAuth2 Access Tokens**, please check our [separate page](/docs/unified-login/customizations/verify-tokens) that shows you how to validate them.
You will have to check for the `roles` claim in the token payload.

:::

## Protecting API routes

Expand Down
9 changes: 8 additions & 1 deletion v2/thirdpartypasswordless/user-roles/protecting-routes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ import { OAuthVerifyTokensDisclaimer }from "/src/components/OAuthDisclaimer"

# Protecting API and frontend routes

<OAuthVerifyTokensDisclaimer />
:::caution

This guide applies to scenarios which involve **SuperTokens Session Access Tokens**.

If you are implementing [**Unified Login**](/docs/unified-login/introduction), that uses **OAuth2 Access Tokens**, please check our [separate page](/docs/unified-login/customizations/verify-tokens) that shows you how to validate them.
You will have to check for the `roles` claim in the token payload.

:::

## Protecting API routes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,8 @@ You will have to add a new item in the `recipeList` array, inside the `supertoke
</OAuthFrontendTabs>


### Disable Network Interceptors

### Disable Network Interceptors
The **Authorization Service Frontend** that you are configuring makes use of two types of access tokens:
- **SuperTokens Session Access Token**: Used only during the login flow in order to keep track of the authentication state.
- **OAuth2 Access Token**: Returned after a successfull login attempt. It can be used afterwards to access protected resources.
Expand Down
9 changes: 8 additions & 1 deletion v2/userroles/protecting-routes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ import { OAuthVerifyTokensDisclaimer }from "/src/components/OAuthDisclaimer"

# Protecting API and frontend routes

<OAuthVerifyTokensDisclaimer />
:::caution

This guide applies to scenarios which involve **SuperTokens Session Access Tokens**.

If you are implementing [**Unified Login**](/docs/unified-login/introduction), that uses **OAuth2 Access Tokens**, please check our [separate page](/docs/unified-login/customizations/verify-tokens) that shows you how to validate them.
You will have to check for the `roles` claim in the token payload.

:::

## Protecting API routes

Expand Down

0 comments on commit 33a5c4f

Please sign in to comment.