Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
max-stytch committed Oct 12, 2023
1 parent 145933b commit af3e418
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions test-runtimes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Runtime validation is defined as:
We can use the following project ID and secret, which are special values that return a pre-canned response from Stytch:

```javascript
// Find these values at https://stytch.com/dashboard/api-keys
// These ones will trigger a well-known erorr message
const client = new stytch.Client({
project_id: "project-live-c60c0abe-c25a-4472-a9ed-320c6667d317",
secret: "secret-live-80JASucyk7z_G8Z-7dVwZVGXL5NT_qGAQ2I=",
Expand Down
2 changes: 2 additions & 0 deletions test-runtimes/bun/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as stytch from "stytch";

export function doStytchRequest(): Promise<void> {
// Find these values at https://stytch.com/dashboard/api-keys
// These ones will trigger a well-known erorr message
return new stytch.Client({
project_id: "project-live-c60c0abe-c25a-4472-a9ed-320c6667d317",
secret: "secret-live-80JASucyk7z_G8Z-7dVwZVGXL5NT_qGAQ2I=",
Expand Down
2 changes: 1 addition & 1 deletion test-runtimes/cloudflare-workers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as stytch from 'stytch';

const client = new stytch.Client({
// Find these values at https://stytch.com/dashboard/api-keys
// These ones are MADE UP!
// These ones will trigger a well-known erorr message
project_id: 'project-live-c60c0abe-c25a-4472-a9ed-320c6667d317',
secret: 'secret-live-80JASucyk7z_G8Z-7dVwZVGXL5NT_qGAQ2I=',
});
Expand Down
2 changes: 2 additions & 0 deletions test-runtimes/deno/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as stytch from "npm:stytch";

export function doStytchRequest(): Promise<void> {
// Find these values at https://stytch.com/dashboard/api-keys
// These ones will trigger a well-known erorr message
return new stytch.Client({
project_id: "project-live-c60c0abe-c25a-4472-a9ed-320c6667d317",
secret: "secret-live-80JASucyk7z_G8Z-7dVwZVGXL5NT_qGAQ2I=",
Expand Down
2 changes: 1 addition & 1 deletion test-runtimes/nextjs/src/pages/api/edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as stytch from "stytch";

const client = new stytch.Client({
// Find these values at https://stytch.com/dashboard/api-keys
// These ones are MADE UP!
// These ones will trigger a well-known erorr message
project_id: "project-live-c60c0abe-c25a-4472-a9ed-320c6667d317",
secret: "secret-live-80JASucyk7z_G8Z-7dVwZVGXL5NT_qGAQ2I=",
});
Expand Down
2 changes: 1 addition & 1 deletion test-runtimes/nextjs/src/pages/api/hello.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as stytch from "stytch";

const client = new stytch.Client({
// Find these values at https://stytch.com/dashboard/api-keys
// These ones are MADE UP!
// These ones will trigger a well-known erorr message
project_id: "project-live-c60c0abe-c25a-4472-a9ed-320c6667d317",
secret: "secret-live-80JASucyk7z_G8Z-7dVwZVGXL5NT_qGAQ2I=",
});
Expand Down
2 changes: 1 addition & 1 deletion test-runtimes/remix/app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const meta: MetaFunction = () => {
export async function loader() {
const client = new stytch.Client({
// Find these values at https://stytch.com/dashboard/api-keys
// These ones are MADE UP!
// These ones will trigger a well-known erorr message
project_id: "project-live-c60c0abe-c25a-4472-a9ed-320c6667d317",
secret: "secret-live-80JASucyk7z_G8Z-7dVwZVGXL5NT_qGAQ2I=",
});
Expand Down

0 comments on commit af3e418

Please sign in to comment.