Skip to content

Commit

Permalink
fix(jwt): use the new inflight interface modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
skyrpex committed Apr 12, 2024
1 parent 38adce3 commit 750690f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions jwt/lib.w
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ struct IJwksClientOptions {
jwksUri: str;
}

interface IJwksSigningKey {
inflight interface IJwksSigningKey {
inflight getPublicKey(): str;
}

interface IJwksClient {
inflight interface IJwksClient {
inflight getSigningKey(kid: str?): IJwksSigningKey;
}

interface IJwt {
inflight interface IJwt {
inflight jwksClient(options: IJwksClientOptions): IJwksClient;
inflight sign(data: Json, secret: str, options: Json?): str;
inflight verify(token: str, secret: inflight (JwtHeader, inflight (str, str): void): void, options: VerifyJwtOptions?): Json;
Expand Down Expand Up @@ -105,7 +105,7 @@ pub class Util {
throw "Either secret or jwksUri must be provided";
}
}

pub inflight static decode(token: str, options: DecodeOptions?): Json {
return JwtUtil._jwt().decode(token, options);
}
Expand Down
4 changes: 2 additions & 2 deletions jwt/package-lock.json

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

2 changes: 1 addition & 1 deletion jwt/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@winglibs/jwt",
"description": "Wing library for JWT authentication",
"version": "0.0.3",
"version": "0.0.4",
"repository": {
"type": "git",
"url": "https://github.com/winglang/winglibs.git",
Expand Down

0 comments on commit 750690f

Please sign in to comment.