Created
December 15, 2021 10:34
-
-
Save tjmonsi/26f90a5be1ddd393840c9e06af4f4616 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export const get = { | |
description: 'Check authentication of a user', | |
operationId: 'checkAuth', | |
tags: [ | |
'Auth' | |
], | |
responses: { | |
200: { | |
description: 'Check authentication of a user', | |
content: { | |
'application/json': { | |
schema: { | |
type: 'object', | |
properties: { | |
success: { | |
type: 'boolean' | |
}, | |
username: { | |
type: 'string' | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
security: [ | |
{ | |
cookieAuth: [] | |
}, | |
{ | |
bearerAuth: [] | |
} | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment