@iad-os/react-ghost-auth
Advanced tools
Comparing version 0.6.3 to 0.6.4
import { AxiosStatic } from 'axios'; | ||
import React from 'react'; | ||
import { AuthenticationConfig, EStatus, TokenResponse } from './models'; | ||
declare type ProviderInfoType = { | ||
type ProviderInfoType = { | ||
selected: string; | ||
@@ -9,3 +9,3 @@ list: string[]; | ||
}; | ||
declare type AuthCtxType = { | ||
type AuthCtxType = { | ||
login: (provider?: string) => void; | ||
@@ -18,3 +18,3 @@ logout: () => void; | ||
}; | ||
export declare type AuthorizationProps = { | ||
export type AuthorizationProps = { | ||
axios: AxiosStatic; | ||
@@ -21,0 +21,0 @@ config: AuthenticationConfig; |
import React from 'react'; | ||
declare type Props = { | ||
type Props = { | ||
children?: React.ReactNode; | ||
@@ -4,0 +4,0 @@ }; |
import React from 'react'; | ||
declare type Props = { | ||
type Props = { | ||
children: React.ReactNode; | ||
@@ -4,0 +4,0 @@ }; |
import React from 'react'; | ||
declare type Props = { | ||
type Props = { | ||
children: React.ReactNode; | ||
@@ -4,0 +4,0 @@ }; |
import React from 'react'; | ||
declare type Props = { | ||
type Props = { | ||
children: React.ReactNode; | ||
@@ -4,0 +4,0 @@ }; |
import React from 'react'; | ||
declare type Props = { | ||
type Props = { | ||
authRequired?: (() => Promise<boolean>) | boolean; | ||
@@ -4,0 +4,0 @@ children: React.ReactNode; |
@@ -1,2 +0,2 @@ | ||
export declare type InitFlowUrlType = { | ||
export type InitFlowUrlType = { | ||
authorization_endpoint: string; | ||
@@ -11,3 +11,3 @@ client_id: string; | ||
}; | ||
export declare type TokenResponse = { | ||
export type TokenResponse = { | ||
access_token: string; | ||
@@ -23,3 +23,3 @@ expires_in: number; | ||
}; | ||
export declare type AuthenticationConfig = { | ||
export type AuthenticationConfig = { | ||
default?: string; | ||
@@ -31,3 +31,3 @@ providers: { | ||
}; | ||
export declare type ProviderOptions = { | ||
export type ProviderOptions = { | ||
name: string; | ||
@@ -45,2 +45,2 @@ authorization_endpoint: string; | ||
}; | ||
export declare type EStatus = 'INIT' | 'LOGIN' | 'LOGGING' | 'LOGGED'; | ||
export type EStatus = 'INIT' | 'LOGIN' | 'LOGGING' | 'LOGGED'; |
{ | ||
"name": "@iad-os/react-ghost-auth", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"maintainers": [ | ||
@@ -35,9 +35,9 @@ { | ||
"@types/qs": "^6.9.7", | ||
"@types/react": "^18.0.12", | ||
"@types/react-dom": "^18.0.5", | ||
"prettier": "2.6.2", | ||
"@types/react": "^18.0.25", | ||
"@types/react-dom": "^18.0.9", | ||
"prettier": "2.8.0", | ||
"rollup": "^2.75.6", | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-typescript2": "^0.32.1", | ||
"typescript": "^4.7.3" | ||
"typescript": "^4.9.3" | ||
}, | ||
@@ -44,0 +44,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
512806
4618
4