From b1d563c874a997981e75ed5a32a5d3cc443c4b7f Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Tue, 12 Jul 2022 14:01:43 +0800 Subject: [PATCH] chore: add uuid to token --- pkg/utils/random/random.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/utils/random/random.go b/pkg/utils/random/random.go index 0d1eb034..175f5140 100644 --- a/pkg/utils/random/random.go +++ b/pkg/utils/random/random.go @@ -1,6 +1,7 @@ package random import ( + "github.com/google/uuid" "math/rand" "time" ) @@ -18,7 +19,7 @@ func String(n int) string { } func Token() string { - return String(64) + return uuid.NewString() + String(64) } func init() {