feat/sync-setting: TODO to get credential

This commit is contained in:
2025-11-28 10:00:29 +07:00
parent b09c9f183c
commit 1cc8702109
3 changed files with 14 additions and 6 deletions
@@ -179,6 +179,12 @@ func VerifyToken(r *http.Request, tokenType TokenType) (data *jwt.Token, errCode
return token, "", ""
}
func GetAuthInfoByUserName(userName string) (data *pa.AuthInfo, err error) {
// disini isi var `data`
// return error jika terjadi apa2
return
}
func ExtractToken(r *http.Request, tokenType TokenType) (data *pa.AuthInfo, err error) {
token, errCode, errDetail := VerifyToken(r, tokenType)
if errCode != "" {