I want to create a short dynamic link
with firebase, which will able auto login for users on mobile, without inserting credentials manually. I also want to get analytics for each user (if he clicked the link, which link, success/fail etc.).
So far, I succeeded to integrate with firebase REST api and generate a unique dynamic link for each api call.
{
"dynamicLinkInfo": {
"dynamicLinkDomain": "example.app.goo.gl",
"link": "https://www.example.com",
"androidInfo": {
"androidPackageName": "com.example.mobile.android"
},
"iosInfo": {
"iosBundleId": "com.example.app.ios"
}
}
}
However, I also want to add user id & jwt token for each user.
My question(s):
1) Should I add the user id as a param when I creating the short link with firebase api? or as query string?
2) Which params or custom params should I use?
3) Is it a good practice to send jwt token as query string in the dynamic link?