Files
kairos-sdk/utils/token.go
2023-03-29 13:34:24 +02:00

14 lines
249 B
Go

package utils
import "strings"
const sep = "_CREDENTIALS_"
func EncodeRecoveryToken(data ...string) string {
return strings.Join(data, sep)
}
func DecodeRecoveryToken(recoverytoken string) []string {
return strings.Split(recoverytoken, sep)
}