Skip to content

Commit a182465

Browse files
committed
fix: tests
1 parent a2822ae commit a182465

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/api/oauthserver/handlers_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -775,10 +775,10 @@ func (ts *OAuthClientTestSuite) TestUserInfo() {
775775
// Check email claims
776776
if tt.expectEmail {
777777
assert.NotEmpty(t, response["email"], "email should be present")
778-
assert.NotNil(t, response["email_confirmed_at"], "email_confirmed_at should be present")
778+
assert.NotNil(t, response["email_verified"], "email_verified should be present")
779779
} else {
780780
assert.Nil(t, response["email"], "email should not be present")
781-
assert.Nil(t, response["email_confirmed_at"], "email_confirmed_at should not be present")
781+
assert.Nil(t, response["email_verified"], "email_verified should not be present")
782782
}
783783

784784
// Check profile claims
@@ -793,10 +793,10 @@ func (ts *OAuthClientTestSuite) TestUserInfo() {
793793
// Check phone claims
794794
if tt.expectPhone {
795795
assert.NotEmpty(t, response["phone"], "phone should be present")
796-
assert.NotNil(t, response["phone_confirmed_at"], "phone_confirmed_at should be present")
796+
assert.NotNil(t, response["phone_verified"], "phone_verified should be present")
797797
} else {
798798
assert.Nil(t, response["phone"], "phone should not be present")
799-
assert.Nil(t, response["phone_confirmed_at"], "phone_confirmed_at should not be present")
799+
assert.Nil(t, response["phone_verified"], "phone_verified should not be present")
800800
}
801801

802802
// Clean up session for next test

0 commit comments

Comments
 (0)