Gathering detailed insights and metrics for @afroze9/solid-auth0
Gathering detailed insights and metrics for @afroze9/solid-auth0
npm install @afroze9/solid-auth0
Typescript
Module System
Node Version
NPM Version
71.4
Supply Chain
93.2
Quality
75.2
Maintenance
100
Vulnerability
100
License
TypeScript (90.75%)
JavaScript (9.25%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
588
Last Day
1
Last Week
1
Last Month
17
Last Year
147
MIT License
3 Stars
10 Commits
2 Forks
2 Watchers
6 Branches
1 Contributors
Updated on Feb 29, 2024
Minified
Minified + Gzipped
Latest Version
0.2.0
Package Id
@afroze9/solid-auth0@0.2.0
Unpacked Size
30.99 kB
Size
6.88 kB
File Count
17
NPM Version
8.15.0
Node Version
16.17.0
Published on
Apr 06, 2023
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-80%
1
Compared to previous week
Last Month
-5.6%
17
Compared to previous month
Last Year
-66.7%
147
Compared to previous year
A SolidJS implementation for Auth0 using the package @auth0/auth0-spa-js
. This work is based on top of the library created by @rturnq (which hasn't been updated in a few years).
npm i @afroze9/solid-auth0
pnpm add @afroze9/solid-auth0
npm add @afroze9/solid-auth0
Note: Please ensure you have an SPA setup in Auth0 to configure the context.
1import { Auth0 } from '@afroze9/solid-auth0'; 2 3const App: Component = () => { 4 return ( 5 <Auth0 6 domain="_auth0_domain_" 7 clientId="_client_id_" 8 audience="_api_audience_" 9 logoutRedirectUri={`${window.location.origin}/`} 10 loginRedirectUri={`${window.location.origin}/`} 11 scope="_scopes_" 12 > 13 <AppComponent /> 14 </Auth0> 15 ); 16};
1import { Auth0State, useAuth0 } from '@afroze9/solid-auth0'; 2 3const TopNav: Component = () => { 4 const auth0: Auth0State<User> | undefined = useAuth0(); 5 6 return <div>{auth0?.isAuthenticated() ? <div>Logout</div> : <div>Login</div>}</div>; 7};
1import { Protected } from '@afroze9/solid-auth0'; 2 3const MyPage: Component = () => { 4 return <div>This is a secure route</div>; 5}; 6 7// You can pass any component to onRedirecting 8export default () => { 9 <Protected onRedirecting={<div>Redirecting...</div>}> 10 <MyPage /> 11 </Protected>; 12};
Currently the wrapper only supports a few underlying functions/properties from the original @auth0/auth0-spa-js
package. Future plan is to add more functionality.
No vulnerabilities found.
No security vulnerabilities found.