Этот коммит содержится в:
Rohitesh Gupta
2023-04-06 01:28:21 +05:30
коммит произвёл GitHub
родитель 0af69b3411
Коммит 7325c38c39
9 изменённых файлов: 130 добавлений и 0 удалений

Просмотреть файл

@@ -269,6 +269,14 @@ func (as SqlOAuthStore) RemoveAuthDataByClientId(clientId string, userId string)
return nil
}
func (as SqlOAuthStore) RemoveAuthDataByUserId(userId string) error {
_, err := as.GetMasterX().Exec("DELETE FROM OAuthAuthData WHERE UserId = ?", userId)
if err != nil {
return errors.Wrapf(err, "failed to delete AuthData with userId=%s", userId)
}
return nil
}
func (as SqlOAuthStore) PermanentDeleteAuthDataByUser(userId string) error {
_, err := as.GetMasterX().Exec("DELETE FROM OAuthAccessData WHERE UserId = ?", userId)
if err != nil {