// InitVerification initializes account / email verification and returns
// combination of token and user ID in a string format to send in verification
// emails etc.
// First parameter determines how long the verification Token should be active.
// Second parameter determines how much time has to pass until another Token
// can be generated.
InitVerification initializes account / email verification and returns
combination of token and user ID in a string format to send in verification
emails etc.
First parameter determines how long the verification Token should be active.
Second parameter determines how much time has to pass until another Token
can be generated.
// InitVerification initializes account / email verification and returns // combination of token and user ID in a string format to send in verification // emails etc . // First parameter determines how long the verification Token should be active . // Second parameter determines how much time has to pass until another Token // can be generated .
func (c *Core) InitVerification(tl TokenLifetime) (string, error) {
	t, err := c.Verification.gen(tl)
	if err != nil {
		return "", err
	}
	return toFullToken(t, c.ID), nil
}
func ( c * Core ) InitVerification ( tl TokenLifetime ) ( string , error ) { t , err := c . Verification . gen ( tl ) if err != nil { return " " , err } return toFullToken ( t , c . ID ) , nil }
InitVerification initializes account / email verification and returns
combination of token and user ID in a string format to send in verification
emails etc.
InitVerification initializes account / email verification and returns combination of token and user ID in a string format to send in verification emails etc .