blob: 9982bb016104ff061733fd672e6b3b0a24161ca7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package xyz.driver.pdsuicommon.auth
import xyz.driver.pdsuicommon.logging._
import xyz.driver.pdsuicommon.auth.RequestId._
import xyz.driver.pdsuicommon.utils.RandomUtils
final case class RequestId(value: String = RandomUtils.randomString(IdLength))
object RequestId {
private val IdLength = 20
implicit def toPhiString(x: RequestId): PhiString = phi"RequestId(${Unsafe(x.value)})"
}
|