noauth 처리 추가
This commit is contained in:
@ -218,6 +218,7 @@ func New(ctx context.Context) (*Maingate, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !*flag.Noauth {
|
||||
opt := option.WithCredentialsFile(mg.FirebaseAdminSDKCredentialFile)
|
||||
firebaseApp, err := firebase.NewApp(context.Background(), nil, opt)
|
||||
if err != nil {
|
||||
@ -230,6 +231,7 @@ func New(ctx context.Context) (*Maingate, error) {
|
||||
if err != nil {
|
||||
logger.Println("FirebaseAppClient error getting Auth client:", err)
|
||||
}
|
||||
}
|
||||
|
||||
return &mg, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user