validate auth from old app and fill auth info

This commit is contained in:
vanilia
2025-11-28 16:43:01 +07:00
parent 219d30b9c3
commit 708bceccdd
15 changed files with 138 additions and 833 deletions

No files matched your search

@@ -180,9 +180,7 @@ func VerifyToken(r *http.Request, tokenType TokenType) (data *jwt.Token, errCode
}
func GetAuthInfoByUserName(userName string) (data *pa.AuthInfo, err error) {
// disini isi var `data`
// return error jika terjadi apa2
return
return getAuthByUserName(userName)
}
func ExtractToken(r *http.Request, tokenType TokenType) (data *pa.AuthInfo, err error) {