Created
March 29, 2020 06:41
-
-
Save dllewellyn/f303eaf0d0ad6c2f38633db1109d4dbf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Controller("/loin") | |
class CustomTokenController { | |
@Secured(SecurityRule.IS_ANONYMOUS) | |
@Get("/logmein") | |
fun getLogin(principal: Principal) : String { | |
FirebaseUtil.initialise() | |
return FirebaseAuth.getInstance().createCustomToken(principal.name) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment