2fas-server/e2e-tests/pass/lib.go

16 lines
244 B
Go
Raw Permalink Normal View History

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
}