mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
GODT-1779: Remove go-imap
This commit is contained in:
13
internal/vault/token.go
Normal file
13
internal/vault/token.go
Normal file
@ -0,0 +1,13 @@
|
||||
package vault
|
||||
|
||||
import (
|
||||
"github.com/ProtonMail/gopenpgp/v2/crypto"
|
||||
)
|
||||
|
||||
// RandomToken is a function that returns a random token.
|
||||
var RandomToken func(size int) ([]byte, error)
|
||||
|
||||
// By default, we use crypto.RandomToken to generate tokens.
|
||||
func init() {
|
||||
RandomToken = crypto.RandomToken
|
||||
}
|
||||
Reference in New Issue
Block a user