firebase / firebase/firebase-js-sdk

FR: FirebaseAuth - refresh token custom expiration time

Open
#3,758 1 comment 0 reactions 0 assignees View on GitHub
api: auth feature request internal-bug-filed
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

FirebaseAuth is an amazing product, probably the best on the market, and when combined with other Firebase/Google products it saves a lot of dev time. The only limitation which prevents us from using it in more of our projects is the default long lived (1 year) refresh token from firebase auth, this is mostly ok for mobile apps but is unsafe/unusable for web applications where there are minimum security concerns (payments, personal data, etc) to have a user logged in for 1 year.
This could be mitigated if we could define (from Firebase Console) the expiration time for the refresh token , and it would be amazing if we could define it per firebase app , where we would be able to set a custom expiration time for the refresh for each app independently.
I am not familiar with the internals of FirebaseAuth and if this would have any security implications but this feature would make Firebase complete and more secure to use

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.