With Firebase 2.x I created a custom token and used it in my iOS app. I set an expiration date for 2018. That all worked great.
Now with 3.x it seems the token expires after ~ 24 hours. I don't really want to generate it on a server and fetch it always from the client. Seems a bit over kill for my use case. I don't need the perfect security, as the app goes to a limited audience. All I want is to have some control over what data the iOS app can access with its token. That's why just generating a token that never expires (or doesn't for a few years) was an ideal solution for me.
I've tried generating a token with an expiration date like this, but it didn't work:
console.log(firebase.auth().createCustomToken(id, {expires:1514764800}))
Any ideas how I could get that to work? Or is generating a new token every time and have the clients fetch it from a server the only way to do a simple anonymous authentication?
Thanks!