summaryrefslogtreecommitdiff
path: root/DSACore/FireBase/Database.cs
blob: cd21c002a774640182bebb9674e5f5200a49cca7 (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
using System;
using System.Collections.Generic;
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 = "ABCDE"; // your app secret
            var firebaseClient = new FirebaseClient(
                "<URL>",
                new FirebaseOptions
                {
                    AuthTokenAsyncFactory = () => Task.FromResult(auth)
                });
        }
    }
}