Skip to content

Commit

Permalink
[Fix] Fill up test payload
Browse files Browse the repository at this point in the history
  • Loading branch information
althenlimzixuan committed May 21, 2024
1 parent 854aa25 commit 33fdaf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/apple/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestIDTokenClaimsUnmarshal(t *testing.T) {
}{
{
name: "'is_private_email' claim is a string",
idToken: `{"AuthURL":"","AccessToken":"","RefreshToken":"","ExpiresAt":"0001-01-01T00:00:00Z","sub":"","email":"test-email@privaterelay.appleid.com","is_private_email":"true"}`,
idToken: `{"AuthURL":"","AccessToken":"","RefreshToken":"","ExpiresAt":"0001-01-01T00:00:00Z","sub":"","email":"test-email@privaterelay.appleid.com","is_private_email":"true", "email_verified":"true"}`,
expectedClaims: IDTokenClaims{
Email: "test-email@privaterelay.appleid.com",
IsPrivateEmail: BoolString{
Expand All @@ -72,7 +72,7 @@ func TestIDTokenClaimsUnmarshal(t *testing.T) {
},
{
name: "'is_private_email' claim is a boolean",
idToken: `{"AuthURL":"","AccessToken":"","RefreshToken":"","ExpiresAt":"0001-01-01T00:00:00Z","sub":"","email":"test-email@privaterelay.appleid.com","is_private_email":true}`,
idToken: `{"AuthURL":"","AccessToken":"","RefreshToken":"","ExpiresAt":"0001-01-01T00:00:00Z","sub":"","email":"test-email@privaterelay.appleid.com","is_private_email":true,"email_verified":true}`,
expectedClaims: IDTokenClaims{
Email: "test-email@privaterelay.appleid.com",
IsPrivateEmail: BoolString{
Expand Down

0 comments on commit 33fdaf9

Please sign in to comment.