wvlet.airframe.rx.html.widget.auth

Members list

Concise view

Type members

Classlikes

class GoogleAuth(config: GoogleAuthConfig) extends LogSupport

Load the Google API https://github.com/google/google-api-javascript-client to use this component:

Load the Google API https://github.com/google/google-api-javascript-client to use this component:

<script src="https://apis.google.com/js/platform.js"></script>

Usage:

val auth = new GoogleAuth(GoogleAuthConfig(clientId = "......"))
auth.init.transform {
 case None =>
   div("Loading ...")
 case _ =>
   auth.getCurrentUser.transform {
     case Some(userProfile) => ...
     case None => ...
   }
}

Attributes

Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
case class GoogleAuthConfig(clientId: String, tokenRefreshIntervalMillis: Long)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class GoogleAuthProfile(name: String, email: String, imageUrl: String, id_token: String)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any