Search code examples
mysqlgoogle-identity-toolkit

Constraits on provider_id / local_id


Keeping a user data in MySQL and making it fetchable by local_id requires creating index by the field of type VARCHAR. The documentation doesn't say a word about the max length.

The default MySQL index key length is 767 bytes.

Does anyone have any more information about constraints?


Solution

  • Good question. For local_id that generated by Google Identity Toolkit, the length will not exceed 767 bytes.