匿名認証サンプルコード
const firebaseConfig = {
apiKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
authDomain: "sample.firebaseapp.com",
databaseURL: "https://sample.firebaseio.com",
projectId: "sample",
storageBucket: "sample.appspot.com",
messagingSenderId: "XXXXXXXXX",
appId: "1:XXXXXXX:web:XXXXX"
};
const app = firebase.initializeApp(firebaseConfig);
await firebase.auth().signInAnonymously().catch(e => {
console.log(e)
})