/// <summary>
        /// Attaches the given Github credentials to the user. This allows the user to sign in to this account in the future with credentials for such provider.
        /// </summary>
        /// <param name="token">The GitHub OAuth access token.</param>
        /// <returns>Updated current account</returns>
        public IObservable <IFirebaseAuthResult> LinkWithGithub(string token)
        {
            AuthCredential credential = GithubAuthProvider.GetCredential(token);

            return(LinkWithCredentialAsync(credential).ToObservable());
        }
Exemplo n.º 2
0
        /// <summary>
        /// Signs in to Firebase with the given  Github credentials.
        /// </summary>
        /// <param name="token">The GitHub OAuth access token.</param>
        /// <returns>User account</returns>
        public async Task <IFirebaseAuthResult> SignInWithGithubAsync(string token)
        {
            AuthCredential credential = GithubAuthProvider.GetCredential(token);

            return(await SignInAsync(credential));
        }
Exemplo n.º 3
0
        public IAuthCredential GetCredential(string token)
        {
            var credential = GithubAuthProvider.GetCredential(token);

            return(new AuthCredentialWrapper(credential));
        }
        /// <inheritdoc/>
        public IObservable <Unit> SignInWithGithub(string token)
        {
            AuthCredential credential = GithubAuthProvider.GetCredential(token);

            return(SignInAsync(credential).ToObservable().Select(_ => Unit.Default));
        }