File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ func (s *TokenStore) Create(info oauth2.TokenInfo) error {
147147// RemoveByCode deletes the authorization code
148148func (s * TokenStore ) RemoveByCode (code string ) error {
149149 err := s .adapter .Exec (fmt .Sprintf ("DELETE FROM %s WHERE code = $1" , s .tableName ), code )
150- if err == ErrNoRows {
150+ if err == pgadapter . ErrNoRows {
151151 return nil
152152 }
153153 return err
@@ -156,7 +156,7 @@ func (s *TokenStore) RemoveByCode(code string) error {
156156// RemoveByAccess uses the access token to delete the token information
157157func (s * TokenStore ) RemoveByAccess (access string ) error {
158158 err := s .adapter .Exec (fmt .Sprintf ("DELETE FROM %s WHERE access = $1" , s .tableName ), access )
159- if err == ErrNoRows {
159+ if err == pgadapter . ErrNoRows {
160160 return nil
161161 }
162162 return err
@@ -165,7 +165,7 @@ func (s *TokenStore) RemoveByAccess(access string) error {
165165// RemoveByRefresh uses the refresh token to delete the token information
166166func (s * TokenStore ) RemoveByRefresh (refresh string ) error {
167167 err := s .adapter .Exec (fmt .Sprintf ("DELETE FROM %s WHERE refresh = $1" , s .tableName ), refresh )
168- if err == ErrNoRows {
168+ if err == pgadapter . ErrNoRows {
169169 return nil
170170 }
171171 return err
You can’t perform that action at this time.
0 commit comments