mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00
15 lines
302 B
Go
15 lines
302 B
Go
![]() |
// Copyright (c) Mainflux
|
||
|
// SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
package mocks
|
||
|
|
||
|
import (
|
||
|
"github.com/mainflux/mainflux/users"
|
||
|
"github.com/mainflux/mainflux/users/token"
|
||
|
)
|
||
|
|
||
|
// NewTokenizer provides tokenizer for the test
|
||
|
func NewTokenizer() users.Tokenizer {
|
||
|
return token.New([]byte("secret"), 1)
|
||
|
}
|