├── .gitignore
├── LICENSE
├── NOTICE
├── README.md
├── json-server
├── db.json
└── routes.json
├── package-lock.json
├── package.json
├── public
└── index.html
└── src
├── app.js
├── auth0-provider-with-navigate.js
├── components
├── auth0-feature.js
├── auth0-features.js
├── authentication-guard.js
├── buttons
│ ├── login-button.js
│ ├── logout-button.js
│ └── signup-button.js
├── code-snippet.js
├── hero-banner.js
├── navigation
│ ├── desktop
│ │ ├── nav-bar-brand.js
│ │ ├── nav-bar-buttons.js
│ │ ├── nav-bar-tab.js
│ │ ├── nav-bar-tabs.js
│ │ └── nav-bar.js
│ └── mobile
│ │ ├── mobile-menu-toggle-button.js
│ │ ├── mobile-nav-bar-brand.js
│ │ ├── mobile-nav-bar-buttons.js
│ │ ├── mobile-nav-bar-tab.js
│ │ ├── mobile-nav-bar-tabs.js
│ │ └── mobile-nav-bar.js
├── page-footer-hyperlink.js
├── page-footer.js
├── page-layout.js
└── page-loader.js
├── index.js
├── pages
├── admin-page.js
├── callback-page.js
├── home-page.js
├── not-found-page.js
├── profile-page.js
├── protected-page.js
└── public-page.js
├── services
├── external-api.service.js
└── message.service.js
└── styles
├── components
├── angular.css
├── auth0-features.css
├── button.css
├── code-snippet.css
├── grids
│ ├── index.css
│ ├── messages-grid.css
│ └── profile-grid.css
├── hero-banner.css
├── index.css
├── layouts
│ ├── content-layout.css
│ ├── index.css
│ └── page-layout.css
├── mobile-nav-bar.css
├── nav-bar.css
├── page-footer.css
└── page-loader.css
├── general.css
├── styles.css
└── theme.css
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # Created by https://www.toptal.com/developers/gitignore/api/macos,windows,jetbrains+all,visualstudiocode,node
3 | # Edit at https://www.toptal.com/developers/gitignore?templates=macos,windows,jetbrains+all,visualstudiocode,node
4 |
5 | ### JetBrains+all ###
6 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
7 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
8 |
9 | # User-specific stuff
10 | .idea/**/workspace.xml
11 | .idea/**/tasks.xml
12 | .idea/**/usage.statistics.xml
13 | .idea/**/dictionaries
14 | .idea/**/shelf
15 |
16 | # AWS User-specific
17 | .idea/**/aws.xml
18 |
19 | # Generated files
20 | .idea/**/contentModel.xml
21 |
22 | # Sensitive or high-churn files
23 | .idea/**/dataSources/
24 | .idea/**/dataSources.ids
25 | .idea/**/dataSources.local.xml
26 | .idea/**/sqlDataSources.xml
27 | .idea/**/dynamic.xml
28 | .idea/**/uiDesigner.xml
29 | .idea/**/dbnavigator.xml
30 |
31 | # Gradle
32 | .idea/**/gradle.xml
33 | .idea/**/libraries
34 |
35 | # Gradle and Maven with auto-import
36 | # When using Gradle or Maven with auto-import, you should exclude module files,
37 | # since they will be recreated, and may cause churn. Uncomment if using
38 | # auto-import.
39 | # .idea/artifacts
40 | # .idea/compiler.xml
41 | # .idea/jarRepositories.xml
42 | # .idea/modules.xml
43 | # .idea/*.iml
44 | # .idea/modules
45 | # *.iml
46 | # *.ipr
47 |
48 | # CMake
49 | cmake-build-*/
50 |
51 | # Mongo Explorer plugin
52 | .idea/**/mongoSettings.xml
53 |
54 | # File-based project format
55 | *.iws
56 |
57 | # IntelliJ
58 | out/
59 |
60 | # mpeltonen/sbt-idea plugin
61 | .idea_modules/
62 |
63 | # JIRA plugin
64 | atlassian-ide-plugin.xml
65 |
66 | # Cursive Clojure plugin
67 | .idea/replstate.xml
68 |
69 | # Crashlytics plugin (for Android Studio and IntelliJ)
70 | com_crashlytics_export_strings.xml
71 | crashlytics.properties
72 | crashlytics-build.properties
73 | fabric.properties
74 |
75 | # Editor-based Rest Client
76 | .idea/httpRequests
77 |
78 | # Android studio 3.1+ serialized cache file
79 | .idea/caches/build_file_checksums.ser
80 |
81 | ### JetBrains+all Patch ###
82 | # Ignores the whole .idea folder and all .iml files
83 | # See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
84 |
85 | .idea/
86 |
87 | # Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
88 |
89 | *.iml
90 | modules.xml
91 | .idea/misc.xml
92 | *.ipr
93 |
94 | # Sonarlint plugin
95 | .idea/sonarlint
96 |
97 | ### macOS ###
98 | # General
99 | .DS_Store
100 | .AppleDouble
101 | .LSOverride
102 |
103 | # Icon must end with two \r
104 | Icon
105 |
106 |
107 | # Thumbnails
108 | ._*
109 |
110 | # Files that might appear in the root of a volume
111 | .DocumentRevisions-V100
112 | .fseventsd
113 | .Spotlight-V100
114 | .TemporaryItems
115 | .Trashes
116 | .VolumeIcon.icns
117 | .com.apple.timemachine.donotpresent
118 |
119 | # Directories potentially created on remote AFP share
120 | .AppleDB
121 | .AppleDesktop
122 | Network Trash Folder
123 | Temporary Items
124 | .apdisk
125 |
126 | ### Node ###
127 | # Logs
128 | logs
129 | *.log
130 | npm-debug.log*
131 | yarn-debug.log*
132 | yarn-error.log*
133 | lerna-debug.log*
134 | .pnpm-debug.log*
135 |
136 | # Diagnostic reports (https://nodejs.org/api/report.html)
137 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
138 |
139 | # Runtime data
140 | pids
141 | *.pid
142 | *.seed
143 | *.pid.lock
144 |
145 | # Directory for instrumented libs generated by jscoverage/JSCover
146 | lib-cov
147 |
148 | # Coverage directory used by tools like istanbul
149 | coverage
150 | *.lcov
151 |
152 | # nyc test coverage
153 | .nyc_output
154 |
155 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
156 | .grunt
157 |
158 | # Bower dependency directory (https://bower.io/)
159 | bower_components
160 |
161 | # node-waf configuration
162 | .lock-wscript
163 |
164 | # Compiled binary addons (https://nodejs.org/api/addons.html)
165 | build/Release
166 |
167 | # Dependency directories
168 | node_modules/
169 | jspm_packages/
170 |
171 | # Snowpack dependency directory (https://snowpack.dev/)
172 | web_modules/
173 |
174 | # TypeScript cache
175 | *.tsbuildinfo
176 |
177 | # Optional npm cache directory
178 | .npm
179 |
180 | # Optional eslint cache
181 | .eslintcache
182 |
183 | # Microbundle cache
184 | .rpt2_cache/
185 | .rts2_cache_cjs/
186 | .rts2_cache_es/
187 | .rts2_cache_umd/
188 |
189 | # Optional REPL history
190 | .node_repl_history
191 |
192 | # Output of 'npm pack'
193 | *.tgz
194 |
195 | # Yarn Integrity file
196 | .yarn-integrity
197 |
198 | # dotenv environment variables file
199 | .env
200 | .env.test
201 | .env.production
202 |
203 | # parcel-bundler cache (https://parceljs.org/)
204 | .cache
205 | .parcel-cache
206 |
207 | # Next.js build output
208 | .next
209 | out
210 |
211 | # Nuxt.js build / generate output
212 | .nuxt
213 | dist
214 |
215 | # Gatsby files
216 | .cache/
217 | # Comment in the public line in if your project uses Gatsby and not Next.js
218 | # https://nextjs.org/blog/next-9-1#public-directory-support
219 | # public
220 |
221 | # vuepress build output
222 | .vuepress/dist
223 |
224 | # Serverless directories
225 | .serverless/
226 |
227 | # FuseBox cache
228 | .fusebox/
229 |
230 | # DynamoDB Local files
231 | .dynamodb/
232 |
233 | # TernJS port file
234 | .tern-port
235 |
236 | # Stores VSCode versions used for testing VSCode extensions
237 | .vscode-test
238 |
239 | # yarn v2
240 | .yarn/cache
241 | .yarn/unplugged
242 | .yarn/build-state.yml
243 | .yarn/install-state.gz
244 | .pnp.*
245 |
246 | ### Node Patch ###
247 | # Serverless Webpack directories
248 | .webpack/
249 |
250 | # Optional stylelint cache
251 | .stylelintcache
252 |
253 | # SvelteKit build / generate output
254 | .svelte-kit
255 |
256 | ### VisualStudioCode ###
257 | .vscode/*
258 | !.vscode/settings.json
259 | !.vscode/tasks.json
260 | !.vscode/launch.json
261 | !.vscode/extensions.json
262 | *.code-workspace
263 |
264 | # Local History for Visual Studio Code
265 | .history/
266 |
267 | ### VisualStudioCode Patch ###
268 | # Ignore all local history of files
269 | .history
270 | .ionide
271 |
272 | # Support for Project snippet scope
273 | !.vscode/*.code-snippets
274 |
275 | ### Windows ###
276 | # Windows thumbnail cache files
277 | Thumbs.db
278 | Thumbs.db:encryptable
279 | ehthumbs.db
280 | ehthumbs_vista.db
281 |
282 | # Dump file
283 | *.stackdump
284 |
285 | # Folder config file
286 | [Dd]esktop.ini
287 |
288 | # Recycle Bin used on file shares
289 | $RECYCLE.BIN/
290 |
291 | # Windows Installer files
292 | *.cab
293 | *.msi
294 | *.msix
295 | *.msm
296 | *.msp
297 |
298 | # Windows shortcuts
299 | *.lnk
300 |
301 | # End of https://www.toptal.com/developers/gitignore/api/macos,windows,jetbrains+all,visualstudiocode,node
302 |
303 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
304 |
305 | # dependencies
306 | /node_modules
307 | /.pnp
308 | .pnp.js
309 |
310 | # testing
311 | /coverage
312 |
313 | # production
314 | /build
315 |
316 | # misc
317 | .env.local
318 | .env.development.local
319 | .env.test.local
320 | .env.production.local
321 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # React/JavaScript: Basic User Authentication Code Sample
2 |
3 | This JavaScript code sample demonstrates **how to implement user authentication** in React applications using Auth0. This React code sample builds the Single-Page Application (SPA) using the React Router 6 library.
4 |
5 | This code sample is part of the ["Auth0 Developer Resources"](https://developer.auth0.com/resources), a place where you can explore the authentication and authorization features of the Auth0 Identity Platform.
6 |
7 | Visit the ["React/JavaScript + React Router 6 Code Sample: User Authentication For Basic Apps"](https://developer.auth0.com/resources/code-samples/spa/react/basic-authentication) page for instructions on how to configure and run this code sample and how to integrate it with an API server of your choice to [create a full-stack code sample](https://developer.auth0.com/resources/code-samples/full-stack/hello-world/basic-access-control/spa).
8 |
9 | ## Why Use Auth0?
10 |
11 | Auth0 is a flexible drop-in solution to add authentication and authorization services to your applications. Your team and organization can avoid the cost, time, and risk that come with building your own solution to authenticate and authorize users. We offer tons of guidance and SDKs for you to get started and [integrate Auth0 into your stack easily](https://developer.auth0.com/resources/code-samples/full-stack).
12 |
--------------------------------------------------------------------------------
/json-server/db.json:
--------------------------------------------------------------------------------
1 | {
2 | "api-messages-public": {
3 | "text": "This is a public message."
4 | },
5 | "api-messages-protected": {
6 | "text": "This is a protected message."
7 | },
8 | "api-messages-admin": {
9 | "text": "This is an admin message."
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/json-server/routes.json:
--------------------------------------------------------------------------------
1 | {
2 | "/api/messages/public": "/api-messages-public",
3 | "/api/messages/protected": "/api-messages-protected",
4 | "/api/messages/admin": "/api-messages-admin"
5 | }
6 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "spa_react_javascript_hello-world",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@auth0/auth0-react": "^2.0.0",
7 | "axios": "^0.27.2",
8 | "react": "^18.2.0",
9 | "react-dom": "^18.2.0",
10 | "react-router-dom": "^6.3.0",
11 | "react-scripts": "5.0.1"
12 | },
13 | "scripts": {
14 | "start": "cross-env PORT=4040 react-scripts start",
15 | "build": "react-scripts build",
16 | "test": "react-scripts test",
17 | "eject": "react-scripts eject",
18 | "lint": "eslint . --ext .js,.jsx --fix --ignore-path .gitignore",
19 | "api": "json-server --host 0.0.0.0 --port 6060 --watch json-server/db.json --routes json-server/routes.json"
20 | },
21 | "eslintConfig": {
22 | "extends": [
23 | "react-app",
24 | "react-app/jest"
25 | ],
26 | "rules": {
27 | "react/prop-types": 0
28 | }
29 | },
30 | "browserslist": {
31 | "production": [
32 | ">0.2%",
33 | "not dead",
34 | "not op_mini all"
35 | ],
36 | "development": [
37 | "last 1 chrome version",
38 | "last 1 firefox version",
39 | "last 1 safari version"
40 | ]
41 | },
42 | "devDependencies": {
43 | "cross-env": "^7.0.3",
44 | "eslint-config-prettier": "^8.5.0",
45 | "eslint-plugin-prettier": "^4.1.0",
46 | "json-server": "^0.17.0",
47 | "prettier": "^2.7.1"
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
19 |
20 | );
21 |
--------------------------------------------------------------------------------
/src/components/auth0-features.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { Auth0Feature } from "./auth0-feature";
3 |
4 | export const Auth0Features = () => {
5 | const featuresList = [
6 | {
7 | title: "Identity Providers",
8 | description:
9 | "Auth0 supports social providers such as Google, Facebook, and Twitter, along with Enterprise providers such as Microsoft Office 365, Google Apps, and Azure. You can also use any OAuth 2.0 Authorization Server.",
10 | resourceUrl: "https://auth0.com/docs/connections",
11 | icon: "https://cdn.auth0.com/blog/hello-auth0/identity-providers-logo.svg",
12 | },
13 | {
14 | title: "Multi-Factor Authentication",
15 | description:
16 | "You can require your users to provide more than one piece of identifying information when logging in. MFA delivers one-time codes to your users via SMS, voice, email, WebAuthn, and push notifications.",
17 | resourceUrl: "https://auth0.com/docs/multifactor-authentication",
18 | icon: "https://cdn.auth0.com/blog/hello-auth0/mfa-logo.svg",
19 | },
20 | {
21 | title: "Attack Protection",
22 | description:
23 | "Auth0 can detect attacks and stop malicious attempts to access your application such as blocking traffic from certain IPs and displaying CAPTCHA. Auth0 supports the principle of layered protection in security that uses a variety of signals to detect and mitigate attacks.",
24 | resourceUrl: "https://auth0.com/docs/attack-protection",
25 | icon: "https://cdn.auth0.com/blog/hello-auth0/advanced-protection-logo.svg",
26 | },
27 | {
28 | title: "Serverless Extensibility",
29 | description:
30 | "Actions are functions that allow you to customize the behavior of Auth0. Each action is bound to a specific triggering event on the Auth0 platform. Auth0 invokes the custom code of these Actions when the corresponding triggering event is produced at runtime.",
31 | resourceUrl: "https://auth0.com/docs/actions",
32 | icon: "https://cdn.auth0.com/blog/hello-auth0/private-cloud-logo.svg",
33 | },
34 | ];
35 |
36 | return (
37 |
21 |
22 | You can use the ID Token to get the profile
23 | information of an authenticated user.
24 |
25 |
26 | Only authenticated users can access this page.
27 |
28 |