Drop redundant validateIDTokenClaims comment
The check order is clear from the code and covered by tests. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
committed by
Cursor Agent
parent
6c4a67d3f7
commit
68e78a2230
@@ -165,10 +165,6 @@ func (c *idTokenClaims) isEmailDomainOwnerVerified() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// validateIDTokenClaims enforces provider-specific account requirements.
|
||||
// Enterprise eligibility is checked before email-verification claims so
|
||||
// personal Google/Microsoft accounts surface ErrPersonalAccountNotAllowed
|
||||
// rather than a generic email-verification failure (e.g. missing xms_edov).
|
||||
func validateIDTokenClaims(info *providerInfo, claims *idTokenClaims) error {
|
||||
if claims.Email == "" {
|
||||
return NewMissingEmailClaimError()
|
||||
|
||||
Reference in New Issue
Block a user