File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 3
3
- Add validation during ` firebase init ` feature selection. (#5232 )
4
4
- Fixed an issue where the extensions emulator did not work with ` demo- ` projects. (#8720 )
5
5
- Fixed issue where ` --export-on-exit ` fails if the target directory does not exist. (#4688 )
6
+ - Fixed issue where the Firebase MCP server could not use application default credentials. (#8671 )
Original file line number Diff line number Diff line change @@ -174,7 +174,8 @@ export class FirebaseMcpServer {
174
174
175
175
async getAuthenticatedUser ( ) : Promise < string | null > {
176
176
try {
177
- return await requireAuth ( await this . resolveOptions ( ) ) ;
177
+ const email = await requireAuth ( await this . resolveOptions ( ) ) ;
178
+ return email ?? "Application Default Credentials" ;
178
179
} catch ( e ) {
179
180
return null ;
180
181
}
Original file line number Diff line number Diff line change @@ -77,7 +77,9 @@ export async function refreshAuth(): Promise<Tokens> {
77
77
}
78
78
79
79
/**
80
- * Ensures that there is an authenticated user.
80
+ * Ensures that the user can make authenticated calls. Returns the email if the user is logged in,
81
+ * returns null if the user has Applciation Default Credentials set up, and errors out
82
+ * if the user is not authenticated
81
83
* @param options CLI options.
82
84
*/
83
85
export async function requireAuth ( options : any ) : Promise < string | null > {
You can’t perform that action at this time.
0 commit comments