Classes
Class: StytchClient
docid\ yiisnk5wtw5z7 cyyypze stytchclient the stytchclient is a chord compatabile wrapper around the following stytch libraries https //www npmjs com/package/@stytch/nextjs https //www npmjs com/package/@stytch/vanilla js import stytchclient from '@chordcommerce/chord stytch' const stytchclient = new stytchclient({ apikey process env stytch api key, redirectpath '/authenticate', sessiondurationminutes 60, }) constructors constructor • new stytchclient ( options ) parameters name type options interface stytchclientoptions docid 47dqqlb4kyfjsa7l7skg4 defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/chord stytch/src/client ts#l43 properties client • client stytchheadlessclient defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/chord stytch/src/client ts#l39 redirectpath • private redirectpath string defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/chord stytch/src/client ts#l40 sessiondurationminutes • private sessiondurationminutes number defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/chord stytch/src/client ts#l41 methods currenturlhandlescallback ▸ currenturlhandlescallback () boolean returns boolean defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/chord stytch/src/client ts#l150 getserviceclient ▸ getserviceclient () stytchheadlessclient returns stytchheadlessclient defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/chord stytch/src/client ts#l146 gettoken ▸ gettoken () promise < string > returns promise < string > defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/chord stytch/src/client ts#l71 getuser ▸ getuser () promise < user > returns promise < user > defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/chord stytch/src/client ts#l93 handlecallback ▸ handlecallback () promise < string > returns promise < string > defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/chord stytch/src/client ts#l118 isloggedin ▸ isloggedin () boolean returns boolean defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/chord stytch/src/client ts#l97 login ▸ login ( namedparameters ) promise < user > parameters name type namedparameters object namedparameters email string returns promise < user > defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/chord stytch/src/client ts#l101 logout ▸ logout () promise < responsecommon > returns promise < responsecommon > defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/chord stytch/src/client ts#l114 pollloginstatus ▸ private pollloginstatus () promise < user > returns promise < user > defined in https //github com/chordcommerce/chord ui/blob/2b105e1/packages/chord stytch/src/client ts#l58