Refresh Token Support and package refactor based on best practice docs #18

Merged
jtom38 merged 15 commits from features/restructure-go-recommendations into main 2024-04-21 10:30:52 -07:00
2 changed files with 13 additions and 2 deletions
Showing only changes of commit 7d6e7d46cd - Show all commits

View File

@ -1,5 +1,7 @@
# Brings the database up to the current migration
migrate-up: migrate-up:
GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./gocook.db goose -dir ./api/migrations up GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./cmd/gocook.db goose -dir ./internal/migrations up
# Rolls back one migration at a time
migrate-down: migrate-down:
GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./gocook.db goose -dir ./api/migrations down GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./cmd/gocook.db goose -dir ./internal/migrations down

View File

@ -16,6 +16,15 @@ Content-Type: application/x-www-form-urlencoded
password=lol password=lol
### Try to refresh the token
POST http://localhost:1323/api/v1/auth/refreshToken
Content-Type: application/json
Authorization: Bearer
{
"username": "test",
"refreshToken": ""
}
### Add Scope to test user ### Add Scope to test user
POST http://localhost:1323/api/v1/auth/scopes/add POST http://localhost:1323/api/v1/auth/scopes/add