Skip to content

Commit 94487e0

Browse files
author
raul-brainattica
committed
Refresh - Auth Services added.
1 parent 599d6cf commit 94487e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

controllers/auth_controller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ func Login(w http.ResponseWriter, r *http.Request) {
2222
}
2323

2424
func RefresfhToken(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) {
25-
token := services.RefreshToken()
2625
w.Header().Set("Content-Type", "application/json")
27-
w.Write(token)
26+
w.Write(services.RefreshToken())
2827
}
2928

3029
func Logout(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) {

0 commit comments

Comments
 (0)