'Get Userdata
'https://cloud.google.com/identity-platform/docs/use-rest-api?hl=de#section-get-account-info
'idToken - The Firebase ID token of the user to delete.
Public Sub getUserData(idToken As String) As ResumableSub
Dim url As String = $"https://identitytoolkit.googleapis.com/v1/accounts:lookup?key=${API_KEY}"$
Dim json As JSONGenerator
json.Initialize(CreateMap("idToken":idToken))
Dim j As HttpJob : j.Initialize("",Me)
j.PostString(url,json.ToString)
j.GetRequest.SetContentType("application/json")
Wait For (j) JobDone(j As HttpJob)
Return GenerateResult(j)
#If Documentation
localId - The uid of the current user.
email - The email of the account.
emailVerified - Whether or not the account's email has been verified.
displayName - The display name for the account.
providerUserInfo - List of all linked provider objects which contain "providerId" and "federatedId".
photoUrl - The photo Url for the account.
passwordHash - Hash version of password.
passwordUpdatedAt - The timestamp, in milliseconds, that the account password was last changed.
validSince - The timestamp, in seconds, which marks a boundary, before which Identity Platform ID tokens are considered revoked.
disabled - Whether the account is disabled or not.
lastLoginAt - The timestamp, in milliseconds, that the account last logged in at.
createdAt - The timestamp, in milliseconds, that the account was created at.
customAuth - Whether the account is authenticated by the developer.
tenantId - The tenant ID of the user. Only returned in multi-tenancy.viderId" and "federatedId".
emailVerified - Whether or not the account's email has been verified.
#End If
End Sub