We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a60ab60 commit 17043ebCopy full SHA for 17043eb
example/src/main/scala/com/softwaremill/example/session/SetSessionTapir.scala
@@ -39,11 +39,15 @@ object SetSessionTapir extends App with StrictLogging {
39
40
val login: ServerEndpoint[Any, Future] =
41
setNewCsrfToken(checkHeader) {
42
- setSession(refreshable, usingCookies) {
43
- setSessionEndpoint {
44
- endpoint.securityIn(myAuth)
45
- }
+ setSessionWithAuth(refreshable, usingCookies){
+ myAuth
46
}
+ // equivalent to
+ // setSession(refreshable, usingCookies) {
47
+ // setSessionEndpoint {
48
+ // endpoint.securityIn(myAuth)
49
+ // }
50
51
}.post
52
.in("api")
53
.in("do_login")
0 commit comments