Skip to content

SignIn with OAuth? #7

Discussion options

You must be logged in to vote

Good news, here a working example :

using com.example;
using System;
using System.Threading.Tasks;
using Supabase.Gotrue;
using Supabase.Gotrue.Exceptions;
using TMPro;
using UnityEngine;
using static Supabase.Gotrue.Constants;
using System.Net;

public class SignInWithGoogle : MonoBehaviour
{
    [SerializeField] private string RedirectUrl = "http://*:3000/";

    // Public Unity References
    public TMP_Text ErrorText = null!;
    public SupabaseManager SupabaseManager = null!;

    // Private implementation
    private bool _doSignIn;
    private bool _doSignOut;
    private bool _doExchangeCode;

    private HttpListener httpListener = null;

    // Transactional data
    private string

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@gaetandezeiraud
Comment options

Comment options

You must be logged in to vote
1 reply
@gaetandezeiraud
Comment options

Answer selected by gaetandezeiraud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6 on May 02, 2024 22:29.