Skip to content

Commit

Permalink
chore: update pkce code example with ssr preact
Browse files Browse the repository at this point in the history
  • Loading branch information
MellKam committed Mar 9, 2024
1 parent 86e6648 commit 1425962
Show file tree
Hide file tree
Showing 11 changed files with 318 additions and 230 deletions.
7 changes: 5 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"[typescript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
}
}
},
"[typescriptreact]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
}
2 changes: 1 addition & 1 deletion client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class SpotifyClient implements HTTPClient {

constructor(accessToken: string, options?: SpotifyClinetOptions);
constructor(
accessToken: null,
accessToken: string | null,
options:
& SpotifyClinetOptions
& Required<Pick<SpotifyClinetOptions, "refresher">>,
Expand Down
12 changes: 10 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,19 @@
"zod": "https://deno.land/x/[email protected]/mod.ts",
"oauth4webapi": "https://deno.land/x/[email protected]/mod.ts",
"oak": "https://deno.land/x/[email protected]/mod.ts",
"oak/deps.ts": "https://deno.land/x/[email protected]/deps.ts",
"std/": "https://deno.land/[email protected]/",
"@soundify/web-api": "./mod.ts",
"@soundify/web-api/pagination": "./pagination.ts",
"@soundify/web-api/auth": "./auth.ts",
"mock_fetch": "https://deno.land/x/[email protected]/mod.ts"
"mock_fetch": "https://deno.land/x/[email protected]/mod.ts",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/",
"preact-render-to-string": "https://esm.sh/[email protected]?external=preact"
},
"fmt": { "useTabs": true }
"fmt": { "useTabs": true },
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "preact"
}
}
12 changes: 10 additions & 2 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
222 changes: 0 additions & 222 deletions examples/oauth4webapi/pkce_code.ts

This file was deleted.

Loading

0 comments on commit 1425962

Please sign in to comment.