mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: 🚨 Use shortand property syntax for object literals
This commit is contained in:
parent
48ffe97849
commit
3fade63567
15 changed files with 31 additions and 31 deletions
|
|
@ -22,8 +22,8 @@ const privateKey = await crypto.subtle.importKey(
|
|||
|
||||
beforeAll(async () => {
|
||||
await db.insert(Applications).values({
|
||||
clientId: clientId,
|
||||
redirectUri: redirectUri,
|
||||
clientId,
|
||||
redirectUri,
|
||||
scopes: scope,
|
||||
name: "Test Application",
|
||||
secret,
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ export default (plugin: PluginType) =>
|
|||
|
||||
await db.insert(Tokens).values({
|
||||
accessToken: randomString(64, "base64url"),
|
||||
code: code,
|
||||
code,
|
||||
scope: scope ?? application.scopes,
|
||||
tokenType: TokenType.Bearer,
|
||||
applicationId: application.id,
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@ beforeAll(async () => {
|
|||
await db
|
||||
.insert(Applications)
|
||||
.values({
|
||||
clientId: clientId,
|
||||
redirectUri: redirectUri,
|
||||
clientId,
|
||||
redirectUri,
|
||||
scopes: scope,
|
||||
name: "Test Application",
|
||||
secret,
|
||||
|
|
@ -26,8 +26,8 @@ beforeAll(async () => {
|
|||
|
||||
await db.insert(Tokens).values({
|
||||
code: "test-code",
|
||||
redirectUri: redirectUri,
|
||||
clientId: clientId,
|
||||
redirectUri,
|
||||
clientId,
|
||||
accessToken: "test-access-token",
|
||||
expiresAt: new Date(Date.now() + 3600 * 1000).toISOString(),
|
||||
createdAt: new Date().toISOString(),
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ const secret = "test-secret";
|
|||
|
||||
beforeAll(async () => {
|
||||
await db.insert(Applications).values({
|
||||
clientId: clientId,
|
||||
redirectUri: redirectUri,
|
||||
clientId,
|
||||
redirectUri,
|
||||
scopes: scope,
|
||||
name: "Test Application",
|
||||
secret,
|
||||
|
|
@ -21,8 +21,8 @@ beforeAll(async () => {
|
|||
|
||||
await db.insert(Tokens).values({
|
||||
code: "test-code",
|
||||
redirectUri: redirectUri,
|
||||
clientId: clientId,
|
||||
redirectUri,
|
||||
clientId,
|
||||
accessToken: "test-access-token",
|
||||
expiresAt: new Date(Date.now() + 3600 * 1000).toISOString(),
|
||||
createdAt: new Date().toISOString(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue