Skip to content

Instantly share code, notes, and snippets.

@tjmonsi
Created December 15, 2021 10:34
Show Gist options
  • Save tjmonsi/26f90a5be1ddd393840c9e06af4f4616 to your computer and use it in GitHub Desktop.
Save tjmonsi/26f90a5be1ddd393840c9e06af4f4616 to your computer and use it in GitHub Desktop.
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