Skip to content

Session

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

Defined in: newgrounds.d.ts:146

Contains information about the current user session.

Property Type Description Defined in
expired boolean If true, the session_id is expired. Use App.startSession to get a new one. newgrounds.d.ts:148
id string A unique session identifier. newgrounds.d.ts:150
passport_url string | null If 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. newgrounds.d.ts:152
remember boolean If true, the user would like you to remember their session id. newgrounds.d.ts:154
user User | null If the user has not signed in, or granted access to your app, this will be null. newgrounds.d.ts:156