Firebase Auth in Chrome
This sample shows how to authorize Firebase in a Chrome extension using a Google account.
Additional files are visible only to premium users
manifest.json
{
"update_url": "https://clients2.google.com/service/update2/crx",
"short_name": "Firebase Auth in Chrome",
"name": "Firebase Auth in Chrome",
"version": "1.2",
"manifest_version": 2,
"description": "This sample shows how to authorize Firebase in a Chrome extension using a Google account.",
"page_action": {
"default_title": "QuickSeek React"
},
"oauth2": {
"client_id": "1004374848128-s10kj8et61ermm705j8glm1j5vf31g0n.apps.googleusercontent.com",
"scopes": [
"https://www.googleapis.com/auth/drive"
]
},
"icons": {
"16": "rand_t.png",
"48": "rand_t.png",
"128": "rand_t.png"
},
"background": {
"scripts": [
"app/background.js"
]
},
"content_scripts": [
{
"matches": [
"*://www.youtube.com/*"
],
"css": [
"/css/root.css"
],
"js": [
"/static/js/content.js"
]
}
],
"web_accessible_resources": [
"/static/css/content.css",
"/static/media/*",
"oauth2/oauth2.html"
],
"content_security_policy": "script-src 'self' 'sha256-GgRxrVOKNdB4LrRsVPDSbzvfdV4UqglmviH9GoBJ5jk='; https://www.gstatic.com/ https://*.firebaseio.com https://www.googleapis.com; object-src 'self' https://apis.google.com",
"permissions": [
"tabs",
"*://www.youtube.com/*",
"identity"
]
}