verify

package
v1.0.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCode

func CheckCode(app string, device string, atrib et.Json) (bool, error)

Check code Check code from email or mobile Structure atrib is type Json this one format:

Is type email format:
{
  "kind": "email";
  "data": {
    "email": "
  }
}

Is type mobile format:
{
  "kind": "mobile";
  "data": {
    "country": "+57",
    "phoneNumber": "3001234567"
  }
}

func CheckEmail

func CheckEmail(app string, device string, email, code string) (bool, error)

func CheckMobile

func CheckMobile(app string, device string, country, phoneNumber, code string) (bool, error)

func VerifyCode

func VerifyCode(app string, device string, atrib et.Json) error

VerifyCode Verify code from email or mobile Structure atrib is type Json this one format:

Is type email format:
{
  "kind": "email";
  "data": {
    "email": "
  }
}

Is type mobile format:
{
  "kind": "mobile";
  "data": {
    "country": "+57",
    "phoneNumber": "3001234567"
  }
}

func VerifyEmail

func VerifyEmail(app string, device string, email string) error

func VerifyMobille

func VerifyMobille(app string, device string, country string, phoneNumber string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL