RemoveAdminUserCacheInfo remove admin user cache info
(ctx context.Context, accessToken string)
| 184 | |
| 185 | // RemoveAdminUserCacheInfo remove admin user cache info |
| 186 | func (ar *authRepo) RemoveAdminUserCacheInfo(ctx context.Context, accessToken string) (err error) { |
| 187 | err = ar.data.Cache.Del(ctx, constant.AdminTokenCacheKey+accessToken) |
| 188 | if err != nil { |
| 189 | return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack() |
| 190 | } |
| 191 | return nil |
| 192 | } |
| 193 | |
| 194 | // AddUserTokenMapping add user token mapping |
| 195 | func (ar *authRepo) AddUserTokenMapping(ctx context.Context, userID, accessToken string) (err error) { |