Skip to content

Conversation

@colerogers
Copy link
Contributor

Simple refactor that moves common auth code pieces into the common directory under the identity namespace.

@colerogers colerogers requested review from inlined and taeold February 1, 2022 18:02
}, options);
}

export class UserRecordMetadata implements firebase.auth.UserMetadata {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's possible that we break some user's code if we remove exported class like this one (similarly for any other exported objects)

Let's create an alias to prevent breaking change (and maybe add a note in go/cf3-v4-sdk to clean it up in the next major version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah that's a great point. I re-exported them in the auth code path, added a todo comment about yanking them, and updated that doc.

// SOFTWARE.

import * as firebase from 'firebase-admin';
import * as _ from 'lodash';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ew. We generally don't allow lodash anymore. I guess I can let it slide because you're just moving code...

@colerogers colerogers merged commit af2c516 into master Feb 2, 2022
@colerogers colerogers deleted the colerogers.auth-refactor branch February 2, 2022 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants