Google Endpoints API + Chrome Extension returns None for endpoints.get_current_user().user_id()

后端 未结 3 770
渐次进展
渐次进展 2020-12-07 23:59

I am developing Google App Engine application written in Python and using Endpoints API. In conjunction, I am writing a Chrome Extension to interact with the Endpoints API.

3条回答
  •  萌比男神i
    2020-12-08 00:08

    I have just recently run into this headache. However, after some testing it appears that with 1.9.2 user.user_id() returns None on the local development server. However, if you deploy, it will return a value. Not sure if this is the App Engine ID or Google+ ID though. Anyway to find out?

    However, given the documentation, I assume the ID it does return is safe to use for persistent records.

提交回复
热议问题