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