Documentation ¶
Index ¶
- func AddEmailTemplateResolver(ctx context.Context, params model.AddEmailTemplateRequest) (*model.Response, error)
- func AddWebhookResolver(ctx context.Context, params model.AddWebhookRequest) (*model.Response, error)
- func AdminLoginResolver(ctx context.Context, params model.AdminLoginInput) (*model.Response, error)
- func AdminLogoutResolver(ctx context.Context) (*model.Response, error)
- func AdminSessionResolver(ctx context.Context) (*model.Response, error)
- func AdminSignupResolver(ctx context.Context, params model.AdminSignupInput) (*model.Response, error)
- func DeactivateAccountResolver(ctx context.Context) (*model.Response, error)
- func DeleteEmailTemplateResolver(ctx context.Context, params model.DeleteEmailTemplateRequest) (*model.Response, error)
- func DeleteUserResolver(ctx context.Context, params model.DeleteUserInput) (*model.Response, error)
- func DeleteWebhookResolver(ctx context.Context, params model.WebhookRequest) (*model.Response, error)
- func EmailTemplatesResolver(ctx context.Context, params *model.PaginatedInput) (*model.EmailTemplates, error)
- func EnableAccessResolver(ctx context.Context, params model.UpdateAccessInput) (*model.Response, error)
- func EnvResolver(ctx context.Context) (*model.Env, error)
- func ForgotPasswordResolver(ctx context.Context, params model.ForgotPasswordInput) (*model.ForgotPasswordResponse, error)
- func GenerateJWTKeysResolver(ctx context.Context, params model.GenerateJWTKeysInput) (*model.GenerateJWTKeysResponse, error)
- func InviteMembersResolver(ctx context.Context, params model.InviteMemberInput) (*model.InviteMembersResponse, error)
- func LoginResolver(ctx context.Context, params model.LoginInput) (*model.AuthResponse, error)
- func LogoutResolver(ctx context.Context) (*model.Response, error)
- func MagicLinkLoginResolver(ctx context.Context, params model.MagicLinkLoginInput) (*model.Response, error)
- func MetaResolver(ctx context.Context) (*model.Meta, error)
- func MobileLoginResolver(ctx context.Context, params model.MobileLoginInput) (*model.AuthResponse, error)
- func MobileSignupResolver(ctx context.Context, params *model.MobileSignUpInput) (*model.AuthResponse, error)
- func ProfileResolver(ctx context.Context) (*model.User, error)
- func ResendOTPResolver(ctx context.Context, params model.ResendOTPRequest) (*model.Response, error)
- func ResendVerifyEmailResolver(ctx context.Context, params model.ResendVerifyEmailInput) (*model.Response, error)
- func ResetPasswordResolver(ctx context.Context, params model.ResetPasswordInput) (*model.Response, error)
- func RevokeAccessResolver(ctx context.Context, params model.UpdateAccessInput) (*model.Response, error)
- func RevokeResolver(ctx context.Context, params model.OAuthRevokeInput) (*model.Response, error)
- func SessionResolver(ctx context.Context, params *model.SessionQueryInput) (*model.AuthResponse, error)
- func SignupResolver(ctx context.Context, params model.SignUpInput) (*model.AuthResponse, error)
- func TestEndpointResolver(ctx context.Context, params model.TestEndpointRequest) (*model.TestEndpointResponse, error)
- func UpdateEmailTemplateResolver(ctx context.Context, params model.UpdateEmailTemplateRequest) (*model.Response, error)
- func UpdateEnvResolver(ctx context.Context, params model.UpdateEnvInput) (*model.Response, error)
- func UpdateProfileResolver(ctx context.Context, params model.UpdateProfileInput) (*model.Response, error)
- func UpdateUserResolver(ctx context.Context, params model.UpdateUserInput) (*model.User, error)
- func UpdateWebhookResolver(ctx context.Context, params model.UpdateWebhookRequest) (*model.Response, error)
- func UserResolver(ctx context.Context, params model.GetUserRequest) (*model.User, error)
- func UsersResolver(ctx context.Context, params *model.PaginatedInput) (*model.Users, error)
- func ValidateJwtTokenResolver(ctx context.Context, params model.ValidateJWTTokenInput) (*model.ValidateJWTTokenResponse, error)
- func ValidateSessionResolver(ctx context.Context, params *model.ValidateSessionInput) (*model.ValidateSessionResponse, error)
- func VerificationRequestsResolver(ctx context.Context, params *model.PaginatedInput) (*model.VerificationRequests, error)
- func VerifyEmailResolver(ctx context.Context, params model.VerifyEmailInput) (*model.AuthResponse, error)
- func VerifyOtpResolver(ctx context.Context, params model.VerifyOTPRequest) (*model.AuthResponse, error)
- func WebhookLogsResolver(ctx context.Context, params *model.ListWebhookLogRequest) (*model.WebhookLogs, error)
- func WebhookResolver(ctx context.Context, params model.WebhookRequest) (*model.Webhook, error)
- func WebhooksResolver(ctx context.Context, params *model.PaginatedInput) (*model.Webhooks, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEmailTemplateResolver ¶
func AddEmailTemplateResolver(ctx context.Context, params model.AddEmailTemplateRequest) (*model.Response, error)
AddEmailTemplateResolver resolver for add email template mutation
func AddWebhookResolver ¶
func AddWebhookResolver(ctx context.Context, params model.AddWebhookRequest) (*model.Response, error)
AddWebhookResolver resolver for add webhook mutation
func AdminLoginResolver ¶
AdminLoginResolver is a resolver for admin login mutation
func AdminLogoutResolver ¶
AdminLogoutResolver is a resolver for admin logout mutation
func AdminSessionResolver ¶
AdminSessionResolver is a resolver for admin session query
func AdminSignupResolver ¶
func AdminSignupResolver(ctx context.Context, params model.AdminSignupInput) (*model.Response, error)
AdminSignupResolver is a resolver for admin signup mutation
func DeactivateAccountResolver ¶
DeactivateAccountResolver is the resolver for the deactivate_account field.
func DeleteEmailTemplateResolver ¶
func DeleteEmailTemplateResolver(ctx context.Context, params model.DeleteEmailTemplateRequest) (*model.Response, error)
DeleteEmailTemplateResolver resolver to delete email template and its relevant logs
func DeleteUserResolver ¶
DeleteUserResolver is a resolver for delete user mutation
func DeleteWebhookResolver ¶
func DeleteWebhookResolver(ctx context.Context, params model.WebhookRequest) (*model.Response, error)
DeleteWebhookResolver resolver to delete webhook and its relevant logs
func EmailTemplatesResolver ¶
func EmailTemplatesResolver(ctx context.Context, params *model.PaginatedInput) (*model.EmailTemplates, error)
EmailTemplatesResolver resolver for getting the list of email templates based on pagination
func EnableAccessResolver ¶
func EnableAccessResolver(ctx context.Context, params model.UpdateAccessInput) (*model.Response, error)
EnableAccessResolver is a resolver for enabling user access
func EnvResolver ¶
EnvResolver is a resolver for config query This is admin only query
func ForgotPasswordResolver ¶
func ForgotPasswordResolver(ctx context.Context, params model.ForgotPasswordInput) (*model.ForgotPasswordResponse, error)
ForgotPasswordResolver is a resolver for forgot password mutation
func GenerateJWTKeysResolver ¶
func GenerateJWTKeysResolver(ctx context.Context, params model.GenerateJWTKeysInput) (*model.GenerateJWTKeysResponse, error)
GenerateJWTKeysResolver mutation to generate new jwt keys
func InviteMembersResolver ¶
func InviteMembersResolver(ctx context.Context, params model.InviteMemberInput) (*model.InviteMembersResponse, error)
InviteMembersResolver resolver to invite members
func LoginResolver ¶
func LoginResolver(ctx context.Context, params model.LoginInput) (*model.AuthResponse, error)
LoginResolver is a resolver for login mutation User can login with email or phone number, but not both
func LogoutResolver ¶
LogoutResolver is a resolver for logout mutation
func MagicLinkLoginResolver ¶
func MagicLinkLoginResolver(ctx context.Context, params model.MagicLinkLoginInput) (*model.Response, error)
MagicLinkLoginResolver is a resolver for magic link login mutation
func MetaResolver ¶
MetaResolver is a resolver for meta query
func MobileLoginResolver ¶
func MobileLoginResolver(ctx context.Context, params model.MobileLoginInput) (*model.AuthResponse, error)
MobileLoginResolver is a resolver for mobile login mutation
func MobileSignupResolver ¶
func MobileSignupResolver(ctx context.Context, params *model.MobileSignUpInput) (*model.AuthResponse, error)
MobileSignupResolver is a resolver for mobile_basic_auth_signup mutation
func ProfileResolver ¶
ProfileResolver is a resolver for profile query
func ResendOTPResolver ¶
ResendOTPResolver is a resolver for resend otp mutation
func ResendVerifyEmailResolver ¶
func ResendVerifyEmailResolver(ctx context.Context, params model.ResendVerifyEmailInput) (*model.Response, error)
ResendVerifyEmailResolver is a resolver for resend verify email mutation
func ResetPasswordResolver ¶
func ResetPasswordResolver(ctx context.Context, params model.ResetPasswordInput) (*model.Response, error)
ResetPasswordResolver is a resolver for reset password mutation
func RevokeAccessResolver ¶
func RevokeAccessResolver(ctx context.Context, params model.UpdateAccessInput) (*model.Response, error)
RevokeAccessResolver is a resolver for revoking user access
func RevokeResolver ¶
RevokeResolver resolver to revoke refresh token
func SessionResolver ¶
func SessionResolver(ctx context.Context, params *model.SessionQueryInput) (*model.AuthResponse, error)
SessionResolver is a resolver for session query TODO allow validating with code and code verifier instead of cookie (PKCE flow)
func SignupResolver ¶
func SignupResolver(ctx context.Context, params model.SignUpInput) (*model.AuthResponse, error)
SignupResolver is a resolver for signup mutation
func TestEndpointResolver ¶
func TestEndpointResolver(ctx context.Context, params model.TestEndpointRequest) (*model.TestEndpointResponse, error)
TestEndpointResolver resolver to test webhook endpoints
func UpdateEmailTemplateResolver ¶
func UpdateEmailTemplateResolver(ctx context.Context, params model.UpdateEmailTemplateRequest) (*model.Response, error)
UpdateEmailTemplateResolver resolver for update email template mutation
func UpdateEnvResolver ¶
UpdateEnvResolver is a resolver for update config mutation This is admin only mutation
func UpdateProfileResolver ¶
func UpdateProfileResolver(ctx context.Context, params model.UpdateProfileInput) (*model.Response, error)
UpdateProfileResolver is resolver for update profile mutation
func UpdateUserResolver ¶
UpdateUserResolver is a resolver for update user mutation This is admin only mutation
func UpdateWebhookResolver ¶
func UpdateWebhookResolver(ctx context.Context, params model.UpdateWebhookRequest) (*model.Response, error)
UpdateWebhookResolver resolver for update webhook mutation
func UserResolver ¶
UserResolver is a resolver for user query This is admin only query
func UsersResolver ¶
UsersResolver is a resolver for users query This is admin only query
func ValidateJwtTokenResolver ¶
func ValidateJwtTokenResolver(ctx context.Context, params model.ValidateJWTTokenInput) (*model.ValidateJWTTokenResponse, error)
ValidateJwtTokenResolver is used to validate a jwt token without its rotation this can be used at API level (backend) it can validate: access_token id_token refresh_token
func ValidateSessionResolver ¶
func ValidateSessionResolver(ctx context.Context, params *model.ValidateSessionInput) (*model.ValidateSessionResponse, error)
ValidateSessionResolver is used to validate a cookie session without its rotation
func VerificationRequestsResolver ¶
func VerificationRequestsResolver(ctx context.Context, params *model.PaginatedInput) (*model.VerificationRequests, error)
VerificationRequestsResolver is a resolver for verification requests query This is admin only query
func VerifyEmailResolver ¶
func VerifyEmailResolver(ctx context.Context, params model.VerifyEmailInput) (*model.AuthResponse, error)
VerifyEmailResolver is a resolver for verify email mutation
func VerifyOtpResolver ¶
func VerifyOtpResolver(ctx context.Context, params model.VerifyOTPRequest) (*model.AuthResponse, error)
VerifyOtpResolver resolver for verify otp mutation
func WebhookLogsResolver ¶
func WebhookLogsResolver(ctx context.Context, params *model.ListWebhookLogRequest) (*model.WebhookLogs, error)
WebhookLogsResolver resolver for getting the list of webhook_logs based on pagination & webhook identifier
func WebhookResolver ¶
WebhookResolver resolver for getting webhook by identifier
func WebhooksResolver ¶
WebhooksResolver resolver for getting the list of webhooks based on pagination
Types ¶
This section is empty.
Source Files ¶
- add_email_template.go
- add_webhook.go
- admin_login.go
- admin_logout.go
- admin_session.go
- admin_signup.go
- deactivate_account.go
- delete_email_template.go
- delete_user.go
- delete_webhook.go
- email_templates.go
- enable_access.go
- env.go
- forgot_password.go
- generate_jwt_keys.go
- invite_members.go
- login.go
- logout.go
- magic_link_login.go
- meta.go
- mobile_login.go
- mobile_signup.go
- profile.go
- resend_otp.go
- resend_verify_email.go
- reset_password.go
- revoke.go
- revoke_access.go
- session.go
- signup.go
- test_endpoint.go
- update_email_template.go
- update_env.go
- update_profile.go
- update_user.go
- update_webhook.go
- user.go
- users.go
- validate_jwt_token.go
- validate_session.go
- verification_requests.go
- verify_email.go
- verify_otp.go
- webhook.go
- webhook_logs.go
- webhooks.go