A tink_web session leveraging WildDuck+Firebase/Google Identity.
import fire_duck.Session;
final router = new Router<Session, Root>(new Root());
final handler = req -> router.route(Context.authed(req, cast Session.new)).recover(OutgoingResponse.reportError);
container.run(handler);
This injects a FireDuck User
into your tink_web
router.
typedef User = {
var fire:UserRecord;
var duck:{
> UserInfoResult,
api:Remote<UserProxy>
};
}
See: