File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ import InstagramTasks from "../templates/instagram/tasks";
2020import { ApolloEndpoint , ScraperEndpoint } from "../endpoints/index" ;
2121// Contains basic session interfaces
2222import { User } from "./index" ;
23+ // Contains the session types
24+ import { SNEKAuth } from "./types" ;
2325// Contains the snek template types
2426import { TaskTypes } from "../templates/snek/types" ;
2527//> Config
@@ -251,9 +253,9 @@ class SnekSession extends CookieSession {
251253 * Begin session.
252254 *
253255 * @param {string } user A User defined by username and password
254- * @returns {Promise<any > } A UserData object
256+ * @returns {Promise<SNEKAuth > } A SNEKAuth object
255257 */
256- async begin ( user ?: User ) : Promise < any > {
258+ async begin ( user ?: User ) : Promise < SNEKAuth > {
257259 let anonymous = false ;
258260
259261 if ( ! user && this . refreshToken ) {
Original file line number Diff line number Diff line change 1+ export interface SNEKAuth {
2+ username ?: string ;
3+ anonymous : boolean ;
4+ }
You can’t perform that action at this time.
0 commit comments