Teacher Authentication

Teacher authentication operations

Teacher login

post
/teacher/login

Authenticate teacher and generate access token

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
emailstring · emailRequired

Teacher email

Example: [email protected]
passwordstringRequired

Teacher password

Example: password123
Responses
200

Login successful

application/json
post
/teacher/login

Teacher logout

post
/teacher/logout

Logout teacher and clear session

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Logout successful

application/json
post
/teacher/logout

Last updated