~ren/magentasso-py

09547b28d5835fe63175d3bd82a52b62c3096cc1 — Lauren Jenkinson 7 months ago 5b129c4
chore: Formatting pass
1 files changed, 5 insertions(+), 5 deletions(-)

M magentasso/response.py
M magentasso/response.py => magentasso/response.py +5 -5
@@ 72,19 72,19 @@ class MagentaResponse:
        return output

    def profile_name(self):
        if 'profile' in self.scope_data:
            name_first = self.scope_data['profile'].get('name_first', None)
            name_last = self.scope_data['profile'].get('name_last', None)
        if "profile" in self.scope_data:
            name_first = self.scope_data["profile"].get("name_first", None)
            name_last = self.scope_data["profile"].get("name_last", None)

            return (name_first, name_last)

        return None

    def external_id(self):
        return self.user_data.get('external_id', None)
        return self.user_data.get("external_id", None)

    def email_address(self):
        return self.user_data.get('email', None)
        return self.user_data.get("email", None)

    def __repr__(self):
        return "MagentaResponse(client_id=%r nonce=%r)" % (self.client_id, self.nonce,)