mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-29 10:43:28 +05:30
Use catch all exception
This commit is contained in:
1 parent
dd5eee150d
commit
1954120c3d
1 file changed
+1
-1
@@ -102,7 +102,7 @@ class RefreshTokenGrant extends AbstractGrant
|
||||
// Validate refresh token
|
||||
try {
|
||||
$refreshToken = $this->decrypt($encryptedRefreshToken);
|
||||
} catch (\LogicException $e) {
|
||||
} catch (\Exception $e) {
|
||||
throw OAuthServerException::invalidRefreshToken('Cannot decrypt the refresh token');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user