Skip to content

Commit

Permalink
Revert computation of returning
Browse files Browse the repository at this point in the history
  • Loading branch information
npm1 authored Jun 23, 2023
1 parent 1a80739 commit 2d7c73e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1208,15 +1208,14 @@ When invoking the {{IdentityProvider/getUserInfo()}} method given an {{IdentityP
values initially set to false.
1. For each |i| from 0 to the length of |accountsList| minus 1:
1. Let |account| be |accountsList|[|i|].
1. If |account|["{{IdentityProviderAccount/approved_clients}}"] is not empty:
1. If |account|["{{IdentityProviderAccount/approved_clients}}"] [=list/contain=]
|provider|'s {{IdentityProviderConfig/clientId}}, set |isReturningAccount|[|i|] to true.

1. If |account|["{{IdentityProviderAccount/approved_clients}}"] is not empty and it does not
[=list/contain=] |provider|'s {{IdentityProviderConfig/clientId}}, continue.

Note: this allows the [=IDP=] to override whether an account is a returning account.
This could be useful for instance in cases where the user has revoked the account
out of band.
1. Otherwise, [=compute the connection status=] of |provider|, |account|, and |globalObject|. If the

1. [=Compute the connection status=] of |provider|, |account|, and |globalObject|. If the
result is [=compute the connection status/connected=], set |isReturningAccount|[|i|] to
true.
1. If |isReturningAccount| does not [=list/contain=] true, [=reject=] |promise| with a new
Expand Down

0 comments on commit 2d7c73e

Please sign in to comment.