-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
9 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,8 +61,8 @@ import { serve } from "https://deno.land/std/http/server.ts" | |
import { encode, decode } from "https://deno.land/std/strings/mod.ts" | ||
import makeJwt, { | ||
setExpiration, | ||
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/create.ts" | ||
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/validate.ts" | ||
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/create.ts" | ||
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/validate.ts" | ||
|
||
const key = "abc" | ||
const claims = { | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import makeJwt, { | ||
setExpiration, | ||
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/create.ts" | ||
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/validate.ts" | ||
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/create.ts" | ||
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/validate.ts" | ||
|
||
const claims = { | ||
iss: "joe", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { serve } from "https://deno.land/std/http/server.ts" | ||
import { encode, decode } from "https://deno.land/std/strings/mod.ts" | ||
import makeJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/create.ts" | ||
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/validate.ts" | ||
import makeJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/create.ts" | ||
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/validate.ts" | ||
;(async () => { | ||
for await (const req of serve("0.0.0.0:8000")) { | ||
if (req.method === "GET") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ import { serve } from "https://deno.land/std/http/server.ts" | |
import { encode, decode } from "https://deno.land/std/strings/mod.ts" | ||
import makeJwt, { | ||
setExpiration, | ||
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/create.ts" | ||
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/validate.ts" | ||
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/create.ts" | ||
import validateJwt from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/validate.ts" | ||
|
||
const key = "abc" | ||
const claims = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ import { addPaddingToBase64url } from "https://denopkg.com/timonson/base64url/ba | |
import makeJwt, { | ||
Claims, | ||
Jose, | ||
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].0/create.ts" | ||
} from "https://cdn.jsdelivr.net/gh/timonson/[email protected].1/create.ts" | ||
|
||
interface CritHandlers { | ||
[key: string]: (header?: any) => any | ||
|