Added openapi cookie security schema

ref #49
This commit is contained in:
2020-12-22 19:13:20 +01:00
parent a85e914759
commit dae51cfd47
10 changed files with 19 additions and 12 deletions

View File

@@ -29,6 +29,12 @@ export default async (app: Application) => {
"scheme": "bearer",
"bearerFormat": "JWT",
description: "A JWT based access token. Use /api/auth/login or /api/auth/refresh to get one."
},
"RefreshTokenCookie": {
"type": "apiKey",
"in": "cookie",
"name": "lfk_backend__refresh_token",
description: "A cookie containing a JWT based refreh token. Attention: Doesn't work in swagger-ui. Use /api/auth/login or /api/auth/refresh to get one."
}
}
},