Skip to content

Commit

Permalink
feat (security): move Firebase database URL & auth token to database
Browse files Browse the repository at this point in the history
  • Loading branch information
R-unic committed Mar 14, 2024
1 parent 52eb6c6 commit 6b21054
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/server/classes/firebase.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--TODO: store in datastore
--== Configuration;
local defaultDatabase = "https://roblox-tabletop-lounge-default-rtdb.firebaseio.com/"; -- Set your database link
local authenticationToken = "9vql32DWOoZGjQzOiO28XWGhsexcPN8ejId8FsTF"; -- Authentication Token

--== Variables;
local HttpService = game:GetService("HttpService");
local DataStoreService = game:GetService("DataStoreService");
local FirebaseInfo = DataStoreService:GetDataStore("FirebaseInfo");

--== Configuration;
local defaultDatabase = FirebaseInfo:GetAsync("DB_URL"); -- Set your database link
local authenticationToken = FirebaseInfo:GetAsync("DB_AUTH"); -- Authentication Token

local FirebaseService = {};
local UseFirebase = true;
Expand Down

0 comments on commit 6b21054

Please sign in to comment.