mirror of
https://github.com/vran-dev/databasir.git
synced 2025-09-20 10:49:20 +08:00
feat: show error message when oauth callback error
This commit is contained in:
@@ -29,9 +29,7 @@ public class OauthAppDao extends BaseDao<OauthAppPojo> {
|
||||
}
|
||||
|
||||
public OauthAppPojo selectByRegistrationId(String registrationId) {
|
||||
return this.getDslContext()
|
||||
.select(OAUTH_APP.fields()).from(OAUTH_APP).where(OAUTH_APP.REGISTRATION_ID.eq(registrationId))
|
||||
.fetchOptionalInto(OauthAppPojo.class)
|
||||
return this.selectOptionByRegistrationId(registrationId)
|
||||
.orElseThrow(() -> new DataNotExistsException("can not found oauth app by " + registrationId));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user