On 6/19/12 4:58 PM, Ben Adida wrote:
> How would people feel about loggedInAs, or loggedInUser instead? Of
> course loggedInEmail would keep working for a good while.
+1 for loggedInUser.
While we're at it, could I suggest something slightly further afield?
It's hard to talk about "loggedInEmail", because you have to dance
around the idea of a user being logged into your site, but that being
different from the user that's logged into Persona. And all you have are
the words "logged in."
What if we said "expectedUser" instead? I think it'd convey the function
much more clearly: "Set 'expectedUser' to the email address of the user
your page is being prepared for. If the Persona user is different from
what you expected, either the onlogin or the onlogout callback will be
invoked to signal the change."
-Callahad