// CancelRecovery checks whether the provided Token is valid and clears all
// active recovery Token data.
// NOTE: provided Token must in its original / raw form - not combined with
// user's ID (as InitRecovery method returns).
CancelRecovery checks whether the provided Token is valid and clears all
active recovery Token data.
NOTE: provided Token must in its original / raw form - not combined with
user's ID (as InitRecovery method returns).
// CancelRecovery checks whether the provided Token is valid and clears all // active recovery Token data . // NOTE : provided Token must in its original / raw form - not combined with // user ' s ID ( as InitRecovery method returns ) .
func (c *Core) CancelRecovery(t string) error {
	if err := c.Recovery.Check(t); err != nil {
		return err
	}
	c.Recovery.Clear()
	return nil
}
func ( c * Core ) CancelRecovery ( t string ) error { if err := c . Recovery . Check ( t ) ; err != nil { return err } c . Recovery . Clear ( ) return nil }
CancelRecovery checks whether the provided Token is valid and clears all
active recovery Token data.
CancelRecovery checks whether the provided Token is valid and clears all active recovery Token data .