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

15 Commits

Author SHA1 Message Date
James Tombleson 7d6e7d46cd small helper file updates 2024-04-21 10:29:46 -07:00
James Tombleson 26820d80f7 uuid was added 2024-04-21 10:29:24 -07:00
James Tombleson 9627c51e7a minor changes to requests and responses 2024-04-21 10:29:17 -07:00
James Tombleson be337b4bb9 auth handler now can work with refresh token request 2024-04-21 10:28:50 -07:00
James Tombleson 8482afed8d small improvement to creating a jwt logic 2024-04-21 10:28:21 -07:00
James Tombleson e7f706b6e7 The refreshtoken no longer cares about when a token expired. When they want a new jtw from refresh a new refresh token is made also 2024-04-21 10:27:56 -07:00
James Tombleson b02ed3f86a Moved handler to use interfaces and added the refreshToken endpoint 2024-04-21 08:59:51 -07:00
James Tombleson 0383d554b8 added RefreshTokenRequest as a body 2024-04-21 08:59:25 -07:00
James Tombleson e218da5e7d Updated some responses to return the base struct with embedding 2024-04-21 08:59:07 -07:00
James Tombleson 5b2ff607b9 Moved entity id's to int64 that the sql driver returns 2024-04-21 08:58:32 -07:00
James Tombleson 029710ad31 updated pathing in main and updated how to find migrations 2024-04-21 08:58:06 -07:00
James Tombleson 8d8781eac4 added a interface for userService 2024-04-21 08:57:32 -07:00
James Tombleson f5eea08c1e updated how refresh token service and repo work 2024-04-21 08:57:10 -07:00
James Tombleson 439c8ed733 moved main.go to cmd folder per best practice 2024-04-20 16:45:57 -07:00
James Tombleson a2e740eefd moved away from the api directory to internal per go doc recommendations 2024-04-20 08:09:24 -07:00