feat: update ResponseToken method name

This commit is contained in:
weloe
2023-10-13 21:57:07 +08:00
parent 05d1bb2f34
commit c14f0e4e6e
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ func (e *Enforcer) createLoginToken(id string, loginModel *model.Login) (string,
}
// ResponseToken set token to cookie or header
func (e *Enforcer) responseToken(tokenValue string, loginModel *model.Login, ctx ctx.Context) error {
func (e *Enforcer) ResponseToken(tokenValue string, loginModel *model.Login, ctx ctx.Context) error {
if ctx == nil {
return nil
}