Skip to content

Instantly share code, notes, and snippets.

Created July 13, 2017 06:32
Show Gist options
  • Save anonymous/c2e3f2dbec2cb327717dfa10f41af7e8 to your computer and use it in GitHub Desktop.
Save anonymous/c2e3f2dbec2cb327717dfa10f41af7e8 to your computer and use it in GitHub Desktop.
the description for this gist
@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