1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-27 13:48:49 +08:00

Remove unused Tokenizer interface (#1084)

Signed-off-by: Ivan Milošević <iva@blokovi.com>
This commit is contained in:
Ivan Milošević 2020-03-25 10:29:48 +01:00 committed by GitHub
parent 6ffa916ed2
commit a2d70c8907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +0,0 @@
// Copyright (c) Mainflux
// SPDX-License-Identifier: Apache-2.0
package users
import "github.com/mainflux/mainflux/errors"
// Tokenizer specifies API for password reset token manipulation
type Tokenizer interface {
// Generate generate new random token. Offset can be used to
// manipulate token validity in time useful for testing.
Generate(email string, offset int) (string, errors.Error)
// Verify verifies token validity
Verify(tok string) (string, errors.Error)
}