https://kotlinlang.org logo
n

Nick

08/17/2021, 9:06 AM
Hey there! Does anyone have an example how I would use
wrap
? I’m specifically trying to harness it for Authentication purposes but I can’t seem to figure it out.
I saw the documentation that shows this:
Copy code
wrap {
  authenticate(optional = true, build = it)
}
But I still can’t grasp exactly what it does nor exactly how to wrap a route.
2 Views