Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ node_modules
coverage
pnpm-lock.yaml
**/.nx
templates
4 changes: 4 additions & 0 deletions samples/browser/quickstart/.stackblitzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"installDependencies": false,
"startCommand": "node -e \"const fs=require(\\\"fs\\\");const p=JSON.parse(fs.readFileSync(\\\"package.json\\\"));[\\\"dependencies\\\",\\\"devDependencies\\\"].forEach(f=>{if(p[f])Object.keys(p[f]).forEach(k=>{if(p[f][k].startsWith(\\\"workspace:\\\"))p[f][k]=\\\"latest\\\"})});fs.writeFileSync(\\\"package.json\\\",JSON.stringify(p,null,2)+\\\"\\\\n\\\")\" && npm install && npm run dev"
}
2 changes: 2 additions & 0 deletions samples/browser/quickstart/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ThunderID Browser Quickstart

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/thunder-id/javascript-sdks/tree/main/samples/browser/quickstart)

A minimal Vite + vanilla JS app demonstrating sign-in and sign-out with the ThunderID JavaScript SDK (`@thunderid/browser`).

## Prerequisites
Expand Down
4 changes: 2 additions & 2 deletions samples/browser/quickstart/src/pages/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ const NEXT_STEPS = [
title: 'Learn about flows',
body: 'Understand how authorization code, PKCE, client credentials, and device flows work.',
cta: 'Read guide',
href: 'https://thunderid.dev/docs/next/guides/guides/flows/what-are-flows/',
href: 'https://thunderid.dev/docs/next/guides/flows/what-are-flows/',
},
{
n: '03',
title: 'Style your experience',
body: 'Customize the login UI, branding, and email templates to match your product.',
cta: 'Design guide',
href: 'https://thunderid.dev/docs/next/guides/guides/design/overview/',
href: 'https://thunderid.dev/docs/next/guides/design/overview/',
},
{
n: '04',
Expand Down
4 changes: 4 additions & 0 deletions samples/express/quickstart/.stackblitzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"installDependencies": false,
"startCommand": "node -e \"const fs=require(\\\"fs\\\");const p=JSON.parse(fs.readFileSync(\\\"package.json\\\"));[\\\"dependencies\\\",\\\"devDependencies\\\"].forEach(f=>{if(p[f])Object.keys(p[f]).forEach(k=>{if(p[f][k].startsWith(\\\"workspace:\\\"))p[f][k]=\\\"latest\\\"})});fs.writeFileSync(\\\"package.json\\\",JSON.stringify(p,null,2)+\\\"\\\\n\\\")\" && npm install && npm run dev"
}
2 changes: 2 additions & 0 deletions samples/express/quickstart/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ThunderID Express Quickstart

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/thunder-id/javascript-sdks/tree/main/samples/express/quickstart)

A minimal Express.js **API** protected by ThunderID access tokens, using the ThunderID JavaScript
SDK (`@thunderid/express`). Unlike the browser-focused quickstarts, this sample doesn't have a
sign-in button — it's a resource server. Open [http://localhost:3000](http://localhost:3000) and
Expand Down
4 changes: 4 additions & 0 deletions samples/nextjs/quickstart/.stackblitzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"installDependencies": false,
"startCommand": "node -e \"const fs=require(\\\"fs\\\");const p=JSON.parse(fs.readFileSync(\\\"package.json\\\"));[\\\"dependencies\\\",\\\"devDependencies\\\"].forEach(f=>{if(p[f])Object.keys(p[f]).forEach(k=>{if(p[f][k].startsWith(\\\"workspace:\\\"))p[f][k]=\\\"latest\\\"})});fs.writeFileSync(\\\"package.json\\\",JSON.stringify(p,null,2)+\\\"\\\\n\\\")\" && npm install && npm run dev"
}
2 changes: 2 additions & 0 deletions samples/nextjs/quickstart/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ThunderID Next.js Quickstart

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/thunder-id/javascript-sdks/tree/main/samples/nextjs/quickstart)

A minimal Next.js 15 App Router application demonstrating ThunderID authentication with OAuth 2.0, PKCE, and JWT out of the box.

## Prerequisites
Expand Down
4 changes: 2 additions & 2 deletions samples/nextjs/quickstart/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ const NEXT_STEPS = [
title: 'Learn about flows',
body: 'Understand how authorization code, PKCE, client credentials, and device flows work.',
cta: 'Read guide',
href: 'https://thunderid.dev/docs/next/guides/guides/flows/what-are-flows/',
href: 'https://thunderid.dev/docs/next/guides/flows/what-are-flows/',
},
{
n: '03',
title: 'Style your experience',
body: 'Customize the login UI, branding, and email templates to match your product.',
cta: 'Design guide',
href: 'https://thunderid.dev/docs/next/guides/guides/design/overview/',
href: 'https://thunderid.dev/docs/next/guides/design/overview/',
},
{
n: '04',
Expand Down
4 changes: 4 additions & 0 deletions samples/node/quickstart/.stackblitzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"installDependencies": false,
"startCommand": "node -e \"const fs=require(\\\"fs\\\");const p=JSON.parse(fs.readFileSync(\\\"package.json\\\"));[\\\"dependencies\\\",\\\"devDependencies\\\"].forEach(f=>{if(p[f])Object.keys(p[f]).forEach(k=>{if(p[f][k].startsWith(\\\"workspace:\\\"))p[f][k]=\\\"latest\\\"})});fs.writeFileSync(\\\"package.json\\\",JSON.stringify(p,null,2)+\\\"\\\\n\\\")\" && npm install && npm run dev"
}
2 changes: 2 additions & 0 deletions samples/node/quickstart/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ThunderID Node.js Service Quickstart

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/thunder-id/javascript-sdks/tree/main/samples/node/quickstart)

A minimal machine-to-machine (service-to-service) client, using the ThunderID Node.js SDK
(`@thunderid/node`). Unlike the other quickstarts, there's no user and no browser sign-in: this
service authenticates as **itself** with the OAuth 2.0 `client_credentials` grant, then uses the
Expand Down
4 changes: 4 additions & 0 deletions samples/nuxt/quickstart/.stackblitzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"installDependencies": false,
"startCommand": "node -e \"const fs=require(\\\"fs\\\");const p=JSON.parse(fs.readFileSync(\\\"package.json\\\"));[\\\"dependencies\\\",\\\"devDependencies\\\"].forEach(f=>{if(p[f])Object.keys(p[f]).forEach(k=>{if(p[f][k].startsWith(\\\"workspace:\\\"))p[f][k]=\\\"latest\\\"})});fs.writeFileSync(\\\"package.json\\\",JSON.stringify(p,null,2)+\\\"\\\\n\\\")\" && npm install && npm run dev"
}
2 changes: 2 additions & 0 deletions samples/nuxt/quickstart/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ThunderID Nuxt Quickstart

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/thunder-id/javascript-sdks/tree/main/samples/nuxt/quickstart)

A minimal Nuxt 3 application demonstrating ThunderID authentication with OAuth 2.0, PKCE, and JWT out of the box.

## Prerequisites
Expand Down
4 changes: 2 additions & 2 deletions samples/nuxt/quickstart/app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ const NEXT_STEPS = [
title: 'Learn about flows',
body: 'Understand how authorization code, PKCE, client credentials, and device flows work.',
cta: 'Read guide',
href: 'https://thunderid.dev/docs/next/guides/guides/flows/what-are-flows/',
href: 'https://thunderid.dev/docs/next/guides/flows/what-are-flows/',
},
{
n: '03',
title: 'Style your experience',
body: 'Customize the login UI, branding, and email templates to match your product.',
cta: 'Design guide',
href: 'https://thunderid.dev/docs/next/guides/guides/design/overview/',
href: 'https://thunderid.dev/docs/next/guides/design/overview/',
},
{
n: '04',
Expand Down
4 changes: 4 additions & 0 deletions samples/react/quickstart/.stackblitzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"installDependencies": false,
"startCommand": "node -e \"const fs=require(\\\"fs\\\");const p=JSON.parse(fs.readFileSync(\\\"package.json\\\"));[\\\"dependencies\\\",\\\"devDependencies\\\"].forEach(f=>{if(p[f])Object.keys(p[f]).forEach(k=>{if(p[f][k].startsWith(\\\"workspace:\\\"))p[f][k]=\\\"latest\\\"})});fs.writeFileSync(\\\"package.json\\\",JSON.stringify(p,null,2)+\\\"\\\\n\\\")\" && npm install && npm run dev"
}
2 changes: 2 additions & 0 deletions samples/react/quickstart/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ThunderID React Quickstart

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/thunder-id/javascript-sdks/tree/main/samples/react/quickstart)

A minimal React + Vite application demonstrating ThunderID authentication with OAuth 2.0, PKCE, and JWT support using the `@thunderid/react` SDK.

## Prerequisites
Expand Down
Loading
Loading