Created
July 13, 2017 06:32
-
-
Save anonymous/c2e3f2dbec2cb327717dfa10f41af7e8 to your computer and use it in GitHub Desktop.
the description for this gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@module trait GitHub { | |
val client: GitHubClient | |
val log: Log | |
def login(code: String) = { | |
for { | |
_ <- log.info(s"Trying to log in with GitHub with code: '$code'") | |
resp <- client.login(code) | |
_ <- log.info(s"Registration response for code: '$code' is '$resp'") | |
} yield resp | |
} | |
} | |
@module trait LoginPersistence { | |
val log: Log | |
val db: LoginDatabase | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment