Skip to content

A tink_web session leveraging WildDuck+Firebase/Google Identity

Notifications You must be signed in to change notification settings

Brave-Pi/fireduck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FireDuck

A tink_web session leveraging WildDuck+Firebase/Google Identity.

Usage

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:

About

A tink_web session leveraging WildDuck+Firebase/Google Identity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages