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:
parent
6ffa916ed2
commit
a2d70c8907
@ -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)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user