Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Breaking Change] Refactored endpoints #19

Merged
merged 9 commits into from
Nov 13, 2023
Merged

[Breaking Change] Refactored endpoints #19

merged 9 commits into from
Nov 13, 2023

Conversation

kasutu
Copy link
Member

@kasutu kasutu commented Nov 13, 2023

Endpoints refactored to standardize and create a robust Custom Auth server for local and offline consumption.

this auth server can also be deployed in the cloud.

++ register now only returns a message
++ login now has the user and tokens payload
++ refresh endpoint refreshesh expired Access token

Description:
stores generated tokens temporarily in memory for testing purposes
Description:
manages and handles refresh tokens

Expected behavior:
provides basic token generation and validation
Description:
holds information about the generated token which
to be stored in a database
Description:
provides an interface to the token storage database

Expected behavior:
should be implemented by the token storage database interactor/connector
in order to add a custom user database
Description:
provide basic tests for the refresh token service

Expected behavior:
should generate a refresh token and validate it
Description:
due to nature of application
the login and register endpoint has been
standardized to ba able to be
implemented in small software projects

Expected behavior:
should register and return only a message
should login and have a payload of tokens and user
in the body
Description:
access tokens expire in a short period of time.
So the need to refresh for it is a must

Expected behavior:
refreshes using the access token from the
client and returns a new `Tokens` object when success
@kasutu kasutu merged commit fdb685b into master Nov 13, 2023
1 check passed
@kasutu kasutu deleted the v2-endpoints branch November 13, 2023 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant