Patrick Jackson
Patrick Jackson

Reputation: 19446

App Engine Google Oauth on dev server

Goal: To get actual user email on dev server when using OAuth 2.

Current Behavior: User service always returns [email protected].

Is there a way to achieve this goal? This would be very helpful for testing purposes.

Upvotes: 0

Views: 157

Answers (1)

Rej
Rej

Reputation: 11

Unfortunately no as per the documentation

On the local development server, oauth.getCurrentUser() always returns a User object with email set to "[email protected]" and user ID set to 0 regardless of whether or not a valid OAuth request was made.

Upvotes: 1

Related Questions