Skip to content

Session

Session: {expired: boolean;id: string;passport_url: string | null;remember: boolean;user: User | null; }

Contains information about the current user session.

Type declaration

MemberTypeDescription
expiredbooleanIf true, the session_id is expired. Use App.startSession to get a new one.
idstringA unique session identifier.
passport_urlstring | nullIf the session has no associated user but is not expired, this property will provide a URL that can be used to sign the user in.
rememberbooleanIf true, the user would like you to remember their session id.
userUser | nullIf the user has not signed in, or granted access to your app, this will be null.

Source

newgrounds.d.ts:146