2fas-server/e2e-tests/pass/lib.go
2024-04-27 13:33:03 +02:00

16 lines
244 B
Go

package pass
import (
"os"
"github.com/google/uuid"
)
func getDeviceID() string {
deviceID := uuid.NewString()
if deviceIDFromEnv := os.Getenv("TEST_DEVICE_ID"); deviceIDFromEnv != "" {
deviceID = deviceIDFromEnv
}
return deviceID
}