From 3b161e00dc9880dd80d1d072e065962b1c601a56 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Sat, 29 Sep 2018 17:08:56 +0200 Subject: added database autenth --- DSACore/FireBase/Database.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'DSACore/FireBase') diff --git a/DSACore/FireBase/Database.cs b/DSACore/FireBase/Database.cs index cd21c00..725c971 100644 --- a/DSACore/FireBase/Database.cs +++ b/DSACore/FireBase/Database.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Threading.Tasks; using Firebase.Database; @@ -12,9 +13,9 @@ namespace DSACore.FireBase { static Database() { - var auth = "ABCDE"; // your app secret + var auth = File.ReadAllText("Token"); ; // your app secret var firebaseClient = new FirebaseClient( - "", + "https://heldenonline-4d828.firebaseio.com/", new FirebaseOptions { AuthTokenAsyncFactory = () => Task.FromResult(auth) -- cgit v1.3.1