feat: init collections index + delete

This commit is contained in:
swve 2022-09-24 20:06:05 +02:00
parent c5bb590b2d
commit 924656ce13
14 changed files with 167 additions and 22 deletions

View file

@ -59,6 +59,7 @@ async def login(Authorize: AuthJWT = Depends(), form_data: OAuth2PasswordRequest
access_token = Authorize.create_access_token(subject=form_data.username)
refresh_token = Authorize.create_refresh_token(subject=form_data.username)
Authorize.set_refresh_cookies(refresh_token)
Authorize.set_access_cookies(access_token)
return {"access_token": access_token , "refresh_token": refresh_token}
@router.delete('/logout')