mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 07:30:25 +00:00
7066101996
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
14 lines
381 B
Go
14 lines
381 B
Go
// Copyright (c) Magistrala
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package auth
|
|
|
|
// Tokenizer specifies API for encoding and decoding between string and Key.
|
|
type Tokenizer interface {
|
|
// Issue converts API Key to its string representation.
|
|
Issue(key Key) (token string, err error)
|
|
|
|
// Parse extracts API Key data from string token.
|
|
Parse(token string) (key Key, err error)
|
|
}
|