diff --git a/Gotrue/Interfaces/IGotrueStatelessClient.cs b/Gotrue/Interfaces/IGotrueStatelessClient.cs index fa21120..521284d 100644 --- a/Gotrue/Interfaces/IGotrueStatelessClient.cs +++ b/Gotrue/Interfaces/IGotrueStatelessClient.cs @@ -44,7 +44,16 @@ public interface IGotrueStatelessClient /// /// Task DeleteUser(string uid, string serviceRoleToken, StatelessClientOptions options); - + + /// + /// Logs in an existing user via a third-party provider. + /// + /// + /// + /// + /// + Task ExchangeCodeForSession(string codeVerifier, string authCode, StatelessClientOptions options); + /// /// Initialize/retrieve the underlying API for this client /// diff --git a/Gotrue/StatelessClient.cs b/Gotrue/StatelessClient.cs index f563240..6e448a4 100644 --- a/Gotrue/StatelessClient.cs +++ b/Gotrue/StatelessClient.cs @@ -207,6 +207,12 @@ public async Task DeleteUser(string uid, string serviceRoleToken, Stateles return true; } + /// + public async Task ExchangeCodeForSession(string codeVerifier, string authCode, StatelessClientOptions options) + { + return await GetApi(options).ExchangeCodeForSession(codeVerifier, authCode); + } + /// public async Task GetSessionFromUrl(Uri uri, StatelessClientOptions options) {