blob: 725c9713444d727274c9c0d44b807f3d0d2844a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Firebase.Database;
using Firebase.Database.Query;
namespace DSACore.FireBase
{
public static class Database
{
static Database()
{
var auth = File.ReadAllText("Token"); ; // your app secret
var firebaseClient = new FirebaseClient(
"https://heldenonline-4d828.firebaseio.com/",
new FirebaseOptions
{
AuthTokenAsyncFactory = () => Task.FromResult(auth)
});
}
}
}
|