Interface IGotrueApi<TUser, TSession>
- Namespace
- Supabase.Gotrue.Interfaces
- Assembly
- Supabase.Gotrue.dll
public interface IGotrueApi<TUser, TSession> : IGettableHeaders where TUser : User where TSession : Session
Type Parameters
TUser
TSession
- Inherited Members
Methods
Challenge(string, MfaChallengeParams)
Task<MfaChallengeResponse?> Challenge(string jwt, MfaChallengeParams mfaChallengeParams)
Parameters
jwt
stringmfaChallengeParams
MfaChallengeParams
Returns
CreateUser(string, AdminUserAttributes?)
Task<TUser?> CreateUser(string jwt, AdminUserAttributes? attributes = null)
Parameters
jwt
stringattributes
AdminUserAttributes
Returns
- Task<TUser>
DeleteFactor(string, MfaAdminDeleteFactorParams)
Task<MfaAdminDeleteFactorResponse?> DeleteFactor(string jwt, MfaAdminDeleteFactorParams deleteFactorParams)
Parameters
jwt
stringdeleteFactorParams
MfaAdminDeleteFactorParams
Returns
DeleteUser(string, string)
Task<BaseResponse> DeleteUser(string uid, string jwt)
Parameters
Returns
Enroll(string, MfaEnrollParams)
Task<MfaEnrollResponse?> Enroll(string jwt, MfaEnrollParams mfaEnrollParams)
Parameters
jwt
stringmfaEnrollParams
MfaEnrollParams
Returns
ExchangeCodeForSession(string, string)
Task<Session?> ExchangeCodeForSession(string codeVerifier, string authCode)
Parameters
Returns
GenerateLink(string, GenerateLinkOptions)
Task<BaseResponse> GenerateLink(string jwt, GenerateLinkOptions options)
Parameters
jwt
stringoptions
GenerateLinkOptions
Returns
GetUriForProvider(Provider, SignInOptions?)
ProviderAuthState GetUriForProvider(Constants.Provider provider, SignInOptions? options = null)
Parameters
provider
Constants.Provideroptions
SignInOptions
Returns
GetUser(string)
Task<TUser?> GetUser(string jwt)
Parameters
jwt
string
Returns
- Task<TUser>
GetUserById(string, string)
Task<TUser?> GetUserById(string jwt, string userId)
Parameters
Returns
- Task<TUser>
InviteUserByEmail(string, string, InviteUserByEmailOptions?)
Task<BaseResponse> InviteUserByEmail(string email, string jwt, InviteUserByEmailOptions? options = null)
Parameters
email
stringjwt
stringoptions
InviteUserByEmailOptions
Returns
LinkIdentity(string, Provider, SignInOptions)
Links an oauth identity to an existing user.
This method requires the PKCE flow.
Task<ProviderAuthState> LinkIdentity(string token, Constants.Provider provider, SignInOptions options)
Parameters
token
stringUser's token
provider
Constants.ProviderProvider to Link
options
SignInOptions
Returns
ListFactors(string, MfaAdminListFactorsParams)
Task<BaseResponse> ListFactors(string jwt, MfaAdminListFactorsParams listFactorsParams)
Parameters
jwt
stringlistFactorsParams
MfaAdminListFactorsParams
Returns
ListUsers(string, string?, string?, SortOrder, int?, int?)
Task<UserList<TUser>?> ListUsers(string jwt, string? filter = null, string? sortBy = null, Constants.SortOrder sortOrder = SortOrder.Descending, int? page = null, int? perPage = null)
Parameters
Returns
Reauthenticate(string)
Task<BaseResponse> Reauthenticate(string userJwt)
Parameters
userJwt
string
Returns
RefreshAccessToken(string, string)
Task<TSession?> RefreshAccessToken(string accessToken, string refreshToken)
Parameters
Returns
- Task<TSession>
ResetPasswordForEmail(ResetPasswordForEmailOptions)
Task<ResetPasswordForEmailState> ResetPasswordForEmail(ResetPasswordForEmailOptions options)
Parameters
options
ResetPasswordForEmailOptions
Returns
ResetPasswordForEmail(string)
Task<BaseResponse> ResetPasswordForEmail(string email)
Parameters
email
string
Returns
SendMagicLinkEmail(string, SignInOptions?)
Task<BaseResponse> SendMagicLinkEmail(string email, SignInOptions? options = null)
Parameters
email
stringoptions
SignInOptions
Returns
SendMobileOTP(string)
Task<BaseResponse> SendMobileOTP(string phone)
Parameters
phone
string
Returns
Settings()
Task<Settings?> Settings()
Returns
SignInAnonymously(SignInAnonymouslyOptions?)
Task<TSession?> SignInAnonymously(SignInAnonymouslyOptions? options = null)
Parameters
options
SignInAnonymouslyOptions
Returns
- Task<TSession>
SignInWithEmail(string, string)
Task<TSession?> SignInWithEmail(string email, string password)
Parameters
Returns
- Task<TSession>
SignInWithIdToken(Provider, string, string?, string?, string?)
Task<TSession?> SignInWithIdToken(Constants.Provider provider, string idToken, string? accessToken = null, string? nonce = null, string? captchaToken = null)
Parameters
Returns
- Task<TSession>
SignInWithOtp(SignInWithPasswordlessEmailOptions)
Task<PasswordlessSignInState> SignInWithOtp(SignInWithPasswordlessEmailOptions options)
Parameters
Returns
SignInWithOtp(SignInWithPasswordlessPhoneOptions)
Task<PasswordlessSignInState> SignInWithOtp(SignInWithPasswordlessPhoneOptions options)
Parameters
Returns
SignInWithPhone(string, string)
Task<TSession?> SignInWithPhone(string phone, string password)
Parameters
Returns
- Task<TSession>
SignInWithSSO(Guid, SignInWithSSOOptions?)
Task<SSOResponse?> SignInWithSSO(Guid providerId, SignInWithSSOOptions? options = null)
Parameters
providerId
Guidoptions
SignInWithSSOOptions
Returns
SignInWithSSO(string, SignInWithSSOOptions?)
Task<SSOResponse?> SignInWithSSO(string domain, SignInWithSSOOptions? options = null)
Parameters
domain
stringoptions
SignInWithSSOOptions
Returns
SignOut(string, SignOutScope)
Task<BaseResponse> SignOut(string jwt, Constants.SignOutScope scope = SignOutScope.Global)
Parameters
jwt
stringscope
Constants.SignOutScope
Returns
SignUpWithEmail(string, string, SignUpOptions?)
Task<TSession?> SignUpWithEmail(string email, string password, SignUpOptions? options = null)
Parameters
email
stringpassword
stringoptions
SignUpOptions
Returns
- Task<TSession>
SignUpWithPhone(string, string, SignUpOptions?)
Task<TSession?> SignUpWithPhone(string phone, string password, SignUpOptions? options = null)
Parameters
phone
stringpassword
stringoptions
SignUpOptions
Returns
- Task<TSession>
Unenroll(string, MfaUnenrollParams)
Task<MfaUnenrollResponse?> Unenroll(string jwt, MfaUnenrollParams mfaVerifyParams)
Parameters
jwt
stringmfaVerifyParams
MfaUnenrollParams
Returns
UnlinkIdentity(string, UserIdentity)
Unlinks an identity from a user by deleting it. The user will no longer be able to sign in with that identity once it's unlinked.
Task<bool> UnlinkIdentity(string token, UserIdentity userIdentity)
Parameters
token
stringUser's token
userIdentity
UserIdentityIdentity to be unlinked
Returns
UpdateUser(string, UserAttributes)
Task<TUser?> UpdateUser(string jwt, UserAttributes attributes)
Parameters
jwt
stringattributes
UserAttributes
Returns
- Task<TUser>
UpdateUserById(string, string, UserAttributes)
Task<TUser?> UpdateUserById(string jwt, string userId, UserAttributes userData)
Parameters
jwt
stringuserId
stringuserData
UserAttributes
Returns
- Task<TUser>
Verify(string, MfaVerifyParams)
Task<MfaVerifyResponse?> Verify(string jwt, MfaVerifyParams mfaVerifyParams)
Parameters
jwt
stringmfaVerifyParams
MfaVerifyParams
Returns
VerifyEmailOTP(string, string, EmailOtpType)
Task<TSession?> VerifyEmailOTP(string email, string token, Constants.EmailOtpType type)
Parameters
email
stringtoken
stringtype
Constants.EmailOtpType
Returns
- Task<TSession>
VerifyMobileOTP(string, string, MobileOtpType)
Task<TSession?> VerifyMobileOTP(string phone, string token, Constants.MobileOtpType type)
Parameters
phone
stringtoken
stringtype
Constants.MobileOtpType
Returns
- Task<TSession>
VerifyTokenHash(string, EmailOtpType)
Task<TSession?> VerifyTokenHash(string tokenHash, Constants.EmailOtpType type)
Parameters
tokenHash
stringtype
Constants.EmailOtpType
Returns
- Task<TSession>