Skip to content

Commit

Permalink
Fix code quality and sync bun.lockdb (#130)
Browse files Browse the repository at this point in the history
# Done

```sh
bun install --frozen-lock
bun run quality:fix
```

# Why

We need a new release in order to have this missing expires_in fix #116

Co-authored-by: Sohel Zerdoumi <[email protected]>
  • Loading branch information
sohelzerdoumi and sohelzerdoumi authored Oct 1, 2024
1 parent ba8a530 commit 5f5558f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
Binary file modified bun.lockb
Binary file not shown.
18 changes: 3 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,8 @@
"version": "2.3.0",
"description": "A strategy to use and implement OAuth2 framework for authentication with federated services like Google, Facebook, GitHub, etc.",
"license": "MIT",
"funding": [
"https://github.com/sponsors/sergiodxa"
],
"keywords": [
"remix",
"remix-auth",
"auth",
"authentication",
"strategy"
],
"funding": ["https://github.com/sponsors/sergiodxa"],
"keywords": ["remix", "remix-auth", "auth", "authentication", "strategy"],
"author": {
"name": "Sergio Xalambrí",
"email": "[email protected]",
Expand All @@ -38,11 +30,7 @@
"engines": {
"node": "^18.0.0 || ^20.0.0 || >=20.0.0"
},
"files": [
"build",
"package.json",
"README.md"
],
"files": ["build", "package.json", "README.md"],
"exports": {
".": "./build/index.js",
"./package.json": "./package.json"
Expand Down
4 changes: 3 additions & 1 deletion src/lib/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ export namespace Token {
...this.body,
access_token: this.accessToken(),
token_type: this.tokenType(),
...("expires_in" in this.body && { expires_in: this.accessTokenExpiresInSeconds() }),
...("expires_in" in this.body && {
expires_in: this.accessTokenExpiresInSeconds(),
}),
...(this.hasScopes() && { scope: this.scopes().join(" ") }),
...(this.hasRefreshToken() && { refresh_token: this.refreshToken() }),
} as Response.Body & ExtraParams;
Expand Down

0 comments on commit 5f5558f

Please sign in to comment.