From 758f8daac751a93a803f83a67ad02b7290fcf381 Mon Sep 17 00:00:00 2001 From: rishabhpoddar Date: Sat, 17 Sep 2022 09:42:30 +0530 Subject: [PATCH] adding dev-v3.2.0 tag to this commit to ensure building --- docs/classes/default.html | 2 +- docs/modules.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/classes/default.html b/docs/classes/default.html index be8352c..0101bad 100644 --- a/docs/classes/default.html +++ b/docs/classes/default.html @@ -1 +1 @@ -default | supertokens-react-native
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • default

Index

Constructors

constructor

Properties

Static Private axiosInterceptorQueue

axiosInterceptorQueue: (() => void)[] = []

Methods

Static addAxiosInterceptors

  • addAxiosInterceptors(axiosInstance: any): void

Static attemptRefreshingSession

  • attemptRefreshingSession(): Promise<boolean>

Static doesSessionExist

  • doesSessionExist(): Promise<boolean>

Static getAccessTokenPayloadSecurely

  • getAccessTokenPayloadSecurely(): Promise<any>

Static getUserId

  • getUserId(): Promise<string>

Static init

Static signOut

  • signOut(): Promise<void>

Generated using TypeDoc

\ No newline at end of file +default | supertokens-react-native
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • default

Index

Constructors

constructor

Properties

Static Private axiosInterceptorQueue

axiosInterceptorQueue: (() => void)[] = []

Methods

Static addAxiosInterceptors

  • addAxiosInterceptors(axiosInstance: any): void

Static attemptRefreshingSession

  • attemptRefreshingSession(): Promise<boolean>

Static doesSessionExist

  • doesSessionExist(): Promise<boolean>

Static getAccessTokenPayloadSecurely

  • getAccessTokenPayloadSecurely(): Promise<any>

Static getUserId

  • getUserId(): Promise<string>

Static init

Static signOut

  • signOut(): Promise<void>

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/modules.html b/docs/modules.html index 401bb78..e588364 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -1 +1 @@ -supertokens-react-native
Options
All
  • Public
  • Public/Protected
  • All
Menu

supertokens-react-native

Index

Type aliases

InputType

InputType: { apiBasePath?: string; apiDomain: string; autoAddCredentials?: boolean; cookieDomain?: string; onHandleEvent?: EventHandler; override?: { functions?: any }; sessionExpiredStatusCode?: number; preAPIHook?: any }

Type declaration

  • Optional apiBasePath?: string
  • apiDomain: string
  • Optional autoAddCredentials?: boolean
  • Optional cookieDomain?: string
  • Optional onHandleEvent?: EventHandler
  • Optional override?: { functions?: any }
  • Optional sessionExpiredStatusCode?: number
  • preAPIHook?:function
    • preAPIHook(context: { action: "SIGN_OUT" | "REFRESH_SESSION"; requestInit: RequestInit; url: string }): Promise<{ requestInit: RequestInit; url: string }>
    • Parameters

      • context: { action: "SIGN_OUT" | "REFRESH_SESSION"; requestInit: RequestInit; url: string }
        • action: "SIGN_OUT" | "REFRESH_SESSION"
        • requestInit: RequestInit
        • url: string

      Returns Promise<{ requestInit: RequestInit; url: string }>

RecipeInterface

RecipeInterface: { addAxiosInterceptors: any; addFetchInterceptorsAndReturnModifiedFetch: any; doesSessionExist: any; getAccessTokenPayloadSecurely: any; getUserId: any; signOut: any }

Type declaration

  • addAxiosInterceptors:function
    • addAxiosInterceptors(axiosInstance: any, config: NormalisedInputType): void
    • Parameters

      • axiosInstance: any
      • config: NormalisedInputType

      Returns void

  • addFetchInterceptorsAndReturnModifiedFetch:function
    • addFetchInterceptorsAndReturnModifiedFetch(originalFetch: any, config: NormalisedInputType): { (input: RequestInfo, init?: RequestInit): Promise<Response>; (input: RequestInfo, init?: RequestInit): Promise<Response> }
    • Parameters

      • originalFetch: any
      • config: NormalisedInputType

      Returns { (input: RequestInfo, init?: RequestInit): Promise<Response>; (input: RequestInfo, init?: RequestInit): Promise<Response> }

        • (input: RequestInfo, init?: RequestInit): Promise<Response>
        • (input: RequestInfo, init?: RequestInit): Promise<Response>
        • Parameters

          • input: RequestInfo
          • Optional init: RequestInit

          Returns Promise<Response>

        • Parameters

          • input: RequestInfo
          • Optional init: RequestInit

          Returns Promise<Response>

  • doesSessionExist:function
    • doesSessionExist(config: NormalisedInputType): Promise<boolean>
    • Parameters

      • config: NormalisedInputType

      Returns Promise<boolean>

  • getAccessTokenPayloadSecurely:function
    • getAccessTokenPayloadSecurely(config: NormalisedInputType): Promise<any>
  • getUserId:function
    • getUserId(config: NormalisedInputType): Promise<string>
  • signOut:function
    • signOut(config: NormalisedInputType): Promise<void>

Functions

addAxiosInterceptors

  • addAxiosInterceptors(axiosInstance: any): void

attemptRefreshingSession

  • attemptRefreshingSession(): Promise<boolean>

doesSessionExist

  • doesSessionExist(): Promise<boolean>

getAccessTokenPayloadSecurely

  • getAccessTokenPayloadSecurely(): Promise<any>

getUserId

  • getUserId(): Promise<string>

init

signOut

  • signOut(): Promise<void>

Generated using TypeDoc

\ No newline at end of file +supertokens-react-native
Options
All
  • Public
  • Public/Protected
  • All
Menu

supertokens-react-native

Index

Type aliases

InputType

InputType: { apiBasePath?: string; apiDomain: string; autoAddCredentials?: boolean; cookieDomain?: string; onHandleEvent?: EventHandler; override?: { functions?: any }; sessionExpiredStatusCode?: number; preAPIHook?: any }

Type declaration

  • Optional apiBasePath?: string
  • apiDomain: string
  • Optional autoAddCredentials?: boolean
  • Optional cookieDomain?: string
  • Optional onHandleEvent?: EventHandler
  • Optional override?: { functions?: any }
  • Optional sessionExpiredStatusCode?: number
  • preAPIHook?:function
    • preAPIHook(context: { action: "SIGN_OUT" | "REFRESH_SESSION"; requestInit: RequestInit; url: string }): Promise<{ requestInit: RequestInit; url: string }>
    • Parameters

      • context: { action: "SIGN_OUT" | "REFRESH_SESSION"; requestInit: RequestInit; url: string }
        • action: "SIGN_OUT" | "REFRESH_SESSION"
        • requestInit: RequestInit
        • url: string

      Returns Promise<{ requestInit: RequestInit; url: string }>

RecipeInterface

RecipeInterface: { addAxiosInterceptors: any; addFetchInterceptorsAndReturnModifiedFetch: any; doesSessionExist: any; getAccessTokenPayloadSecurely: any; getUserId: any; signOut: any }

Type declaration

  • addAxiosInterceptors:function
    • addAxiosInterceptors(axiosInstance: any, config: NormalisedInputType): void
    • Parameters

      • axiosInstance: any
      • config: NormalisedInputType

      Returns void

  • addFetchInterceptorsAndReturnModifiedFetch:function
    • addFetchInterceptorsAndReturnModifiedFetch(originalFetch: any, config: NormalisedInputType): { (input: RequestInfo, init?: RequestInit): Promise<Response>; (input: RequestInfo, init?: RequestInit): Promise<Response> }
    • Parameters

      • originalFetch: any
      • config: NormalisedInputType

      Returns { (input: RequestInfo, init?: RequestInit): Promise<Response>; (input: RequestInfo, init?: RequestInit): Promise<Response> }

        • (input: RequestInfo, init?: RequestInit): Promise<Response>
        • (input: RequestInfo, init?: RequestInit): Promise<Response>
        • Parameters

          • input: RequestInfo
          • Optional init: RequestInit

          Returns Promise<Response>

        • Parameters

          • input: RequestInfo
          • Optional init: RequestInit

          Returns Promise<Response>

  • doesSessionExist:function
    • doesSessionExist(config: NormalisedInputType): Promise<boolean>
    • Parameters

      • config: NormalisedInputType

      Returns Promise<boolean>

  • getAccessTokenPayloadSecurely:function
    • getAccessTokenPayloadSecurely(config: NormalisedInputType): Promise<any>
  • getUserId:function
    • getUserId(config: NormalisedInputType): Promise<string>
  • signOut:function
    • signOut(config: NormalisedInputType): Promise<void>

Functions

addAxiosInterceptors

  • addAxiosInterceptors(axiosInstance: any): void

attemptRefreshingSession

  • attemptRefreshingSession(): Promise<boolean>

doesSessionExist

  • doesSessionExist(): Promise<boolean>

getAccessTokenPayloadSecurely

  • getAccessTokenPayloadSecurely(): Promise<any>

getUserId

  • getUserId(): Promise<string>

init

signOut

  • signOut(): Promise<void>

Generated using TypeDoc

\ No newline at end of file