Compare commits
7 Commits
@nhost/apo
...
@nhost/rea
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8a8d4fca3 | ||
|
|
311374e3fb | ||
|
|
e40a4529b4 | ||
|
|
1623e9bd20 | ||
|
|
5c47e8e675 | ||
|
|
9f9f1c64f4 | ||
|
|
981404f0b9 |
@@ -1,5 +1,18 @@
|
|||||||
# @nhost/dashboard
|
# @nhost/dashboard
|
||||||
|
|
||||||
|
## 1.11.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- @nhost/react-apollo@10.0.2
|
||||||
|
- @nhost/nextjs@2.1.8
|
||||||
|
|
||||||
|
## 1.11.1
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 981404f: fix: set default value for healthCheck field validation
|
||||||
|
|
||||||
## 1.11.0
|
## 1.11.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/dashboard",
|
"name": "@nhost/dashboard",
|
||||||
"version": "1.11.0",
|
"version": "1.11.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "npx only-allow pnpm",
|
"preinstall": "npx only-allow pnpm",
|
||||||
|
|||||||
@@ -47,7 +47,8 @@ export const validationSchema = Yup.object({
|
|||||||
initialDelaySeconds: Yup.number().required(),
|
initialDelaySeconds: Yup.number().required(),
|
||||||
probePeriodSeconds: Yup.number().required(),
|
probePeriodSeconds: Yup.number().required(),
|
||||||
})
|
})
|
||||||
.nullable(),
|
.nullable()
|
||||||
|
.default(undefined),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type ServiceFormValues = Yup.InferType<typeof validationSchema>;
|
export type ServiceFormValues = Yup.InferType<typeof validationSchema>;
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @nhost/docs
|
# @nhost/docs
|
||||||
|
|
||||||
|
## 2.7.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 5c47e8e: feat: added hasura's stringifyNumericTypes setting
|
||||||
|
|
||||||
## 2.7.1
|
## 2.7.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ Below, you will find the official `CUE` schema and an example on how to configur
|
|||||||
|
|
||||||
// HASURA_GRAPHQL_LIVE_QUERIES_MULTIPLEXED_REFETCH_INTERVAL
|
// HASURA_GRAPHQL_LIVE_QUERIES_MULTIPLEXED_REFETCH_INTERVAL
|
||||||
liveQueriesMultiplexedRefetchInterval: uint32 | *1000
|
liveQueriesMultiplexedRefetchInterval: uint32 | *1000
|
||||||
|
|
||||||
|
// HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES
|
||||||
|
stringifyNumericTypes: bool | *false
|
||||||
}
|
}
|
||||||
|
|
||||||
logs: {
|
logs: {
|
||||||
@@ -83,6 +86,7 @@ enableConsole = true
|
|||||||
enableRemoteSchemaPermissions = true
|
enableRemoteSchemaPermissions = true
|
||||||
enabledAPIs = ['metadata']
|
enabledAPIs = ['metadata']
|
||||||
liveQueriesMultiplexedRefetchInterval = 1000
|
liveQueriesMultiplexedRefetchInterval = 1000
|
||||||
|
stringifyNumericTypes = false
|
||||||
|
|
||||||
[hasura.logs]
|
[hasura.logs]
|
||||||
level = 'warn'
|
level = 'warn'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/docs",
|
"name": "@nhost/docs",
|
||||||
"version": "2.7.1",
|
"version": "2.7.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "mintlify dev"
|
"start": "mintlify dev"
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @nhost-examples/cli
|
# @nhost-examples/cli
|
||||||
|
|
||||||
|
## 0.2.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- @nhost/nhost-js@3.0.10
|
||||||
|
|
||||||
## 0.2.1
|
## 0.2.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/cli",
|
"name": "@nhost-examples/cli",
|
||||||
"version": "0.2.1",
|
"version": "0.2.2",
|
||||||
"main": "src/index.mjs",
|
"main": "src/index.mjs",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
# @nhost-examples/codegen-react-apollo
|
# @nhost-examples/codegen-react-apollo
|
||||||
|
|
||||||
|
## 0.3.1
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [311374e]
|
||||||
|
- @nhost/react@3.3.2
|
||||||
|
- @nhost/react-apollo@10.0.2
|
||||||
|
|
||||||
## 0.3.0
|
## 0.3.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/codegen-react-apollo",
|
"name": "@nhost-examples/codegen-react-apollo",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"codegen": "graphql-codegen",
|
"codegen": "graphql-codegen",
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# @nhost-examples/codegen-react-query
|
# @nhost-examples/codegen-react-query
|
||||||
|
|
||||||
|
## 0.3.1
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [311374e]
|
||||||
|
- @nhost/react@3.3.2
|
||||||
|
|
||||||
## 0.3.0
|
## 0.3.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/codegen-react-query",
|
"name": "@nhost-examples/codegen-react-query",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"codegen": "graphql-codegen",
|
"codegen": "graphql-codegen",
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
# @nhost-examples/react-urql
|
# @nhost-examples/react-urql
|
||||||
|
|
||||||
|
## 0.2.1
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [311374e]
|
||||||
|
- @nhost/react@3.3.2
|
||||||
|
- @nhost/react-urql@7.0.2
|
||||||
|
|
||||||
## 0.2.0
|
## 0.2.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/codegen-react-urql",
|
"name": "@nhost-examples/codegen-react-urql",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @nhost-examples/docker-compose
|
# @nhost-examples/docker-compose
|
||||||
|
|
||||||
|
## 0.3.0
|
||||||
|
|
||||||
|
### Minor Changes
|
||||||
|
|
||||||
|
- e40a452: chore: clarification on greyed-out options in the dashboard when self-hosting
|
||||||
|
|
||||||
## 0.2.0
|
## 0.2.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
Here is an example on how to reproduce the Nhost stack from a docker-compose file.
|
Here is an example on how to reproduce the Nhost stack from a docker-compose file.
|
||||||
|
|
||||||
|
NOTE: You may notice that some options in the dashboard are greyed-out. These include additional services like CI integration, configuration management, etc., offered by the Nhost Cloud and therefore are not accessible when self-hosting.
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/docker-compose",
|
"name": "@nhost-examples/docker-compose",
|
||||||
"version": "0.2.0",
|
"version": "0.3.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"e2e": "vitest run"
|
"e2e": "vitest run"
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @nhost-examples/multi-tenant-one-to-many
|
# @nhost-examples/multi-tenant-one-to-many
|
||||||
|
|
||||||
|
## 2.1.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- @nhost/nhost-js@3.0.10
|
||||||
|
|
||||||
## 2.1.1
|
## 2.1.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/multi-tenant-one-to-many",
|
"name": "@nhost-examples/multi-tenant-one-to-many",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "2.1.1",
|
"version": "2.1.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {},
|
"scripts": {},
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
# @nhost-examples/nextjs
|
# @nhost-examples/nextjs
|
||||||
|
|
||||||
|
## 0.2.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [311374e]
|
||||||
|
- @nhost/react@3.3.2
|
||||||
|
- @nhost/react-apollo@10.0.2
|
||||||
|
- @nhost/nextjs@2.1.8
|
||||||
|
|
||||||
## 0.2.1
|
## 0.2.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/nextjs",
|
"name": "@nhost-examples/nextjs",
|
||||||
"version": "0.2.1",
|
"version": "0.2.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @nhost-examples/node-storage
|
# @nhost-examples/node-storage
|
||||||
|
|
||||||
|
## 0.1.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- @nhost/nhost-js@3.0.10
|
||||||
|
|
||||||
## 0.1.1
|
## 0.1.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/node-storage",
|
"name": "@nhost-examples/node-storage",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "This is an example of how to use the Storage with Node.js",
|
"description": "This is an example of how to use the Storage with Node.js",
|
||||||
"main": "src/index.mjs",
|
"main": "src/index.mjs",
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @nhost-examples/nextjs-server-components
|
# @nhost-examples/nextjs-server-components
|
||||||
|
|
||||||
|
## 0.3.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- @nhost/nhost-js@3.0.10
|
||||||
|
|
||||||
## 0.3.1
|
## 0.3.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/nextjs-server-components",
|
"name": "@nhost-examples/nextjs-server-components",
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
@@ -1,5 +1,17 @@
|
|||||||
# @nhost-examples/react-apollo
|
# @nhost-examples/react-apollo
|
||||||
|
|
||||||
|
## 0.7.0
|
||||||
|
|
||||||
|
### Minor Changes
|
||||||
|
|
||||||
|
- 311374e: feat: add example of how to connect a social auth provider to an existing account
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [311374e]
|
||||||
|
- @nhost/react@3.3.2
|
||||||
|
- @nhost/react-apollo@10.0.2
|
||||||
|
|
||||||
## 0.6.0
|
## 0.6.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
|||||||
@@ -46,3 +46,13 @@ object_relationships:
|
|||||||
- name: user
|
- name: user
|
||||||
using:
|
using:
|
||||||
foreign_key_constraint_on: user_id
|
foreign_key_constraint_on: user_id
|
||||||
|
select_permissions:
|
||||||
|
- role: user
|
||||||
|
permission:
|
||||||
|
columns:
|
||||||
|
- id
|
||||||
|
- provider_id
|
||||||
|
filter:
|
||||||
|
user_id:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
comment: ""
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ httpPoolSize = 100
|
|||||||
version = 18
|
version = 18
|
||||||
|
|
||||||
[auth]
|
[auth]
|
||||||
version = '0.27.0-beta13'
|
version = '0.28.0-beta2'
|
||||||
|
|
||||||
[auth.elevatedPrivileges]
|
[auth.elevatedPrivileges]
|
||||||
mode = 'required'
|
mode = 'required'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/react-apollo",
|
"name": "@nhost-examples/react-apollo",
|
||||||
"version": "0.6.0",
|
"version": "0.7.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apollo/client": "^3.9.5",
|
"@apollo/client": "^3.9.5",
|
||||||
|
|||||||
@@ -201,6 +201,73 @@ export type AuthRefreshTokensStreamCursorValueInput = {
|
|||||||
userId?: InputMaybe<Scalars['uuid']>;
|
userId?: InputMaybe<Scalars['uuid']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** Active providers for a given user. Don't modify its structure as Hasura Auth relies on it to function properly. */
|
||||||
|
export type AuthUserProviders = {
|
||||||
|
__typename?: 'authUserProviders';
|
||||||
|
id: Scalars['uuid'];
|
||||||
|
providerId: Scalars['String'];
|
||||||
|
/** An object relationship */
|
||||||
|
user: Users;
|
||||||
|
};
|
||||||
|
|
||||||
|
/** order by aggregate values of table "auth.user_providers" */
|
||||||
|
export type AuthUserProvidersAggregateOrderBy = {
|
||||||
|
count?: InputMaybe<OrderBy>;
|
||||||
|
max?: InputMaybe<AuthUserProvidersMaxOrderBy>;
|
||||||
|
min?: InputMaybe<AuthUserProvidersMinOrderBy>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/** Boolean expression to filter rows from the table "auth.user_providers". All fields are combined with a logical 'AND'. */
|
||||||
|
export type AuthUserProvidersBoolExp = {
|
||||||
|
_and?: InputMaybe<Array<AuthUserProvidersBoolExp>>;
|
||||||
|
_not?: InputMaybe<AuthUserProvidersBoolExp>;
|
||||||
|
_or?: InputMaybe<Array<AuthUserProvidersBoolExp>>;
|
||||||
|
id?: InputMaybe<UuidComparisonExp>;
|
||||||
|
providerId?: InputMaybe<StringComparisonExp>;
|
||||||
|
user?: InputMaybe<UsersBoolExp>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/** order by max() on columns of table "auth.user_providers" */
|
||||||
|
export type AuthUserProvidersMaxOrderBy = {
|
||||||
|
id?: InputMaybe<OrderBy>;
|
||||||
|
providerId?: InputMaybe<OrderBy>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/** order by min() on columns of table "auth.user_providers" */
|
||||||
|
export type AuthUserProvidersMinOrderBy = {
|
||||||
|
id?: InputMaybe<OrderBy>;
|
||||||
|
providerId?: InputMaybe<OrderBy>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/** Ordering options when selecting data from "auth.user_providers". */
|
||||||
|
export type AuthUserProvidersOrderBy = {
|
||||||
|
id?: InputMaybe<OrderBy>;
|
||||||
|
providerId?: InputMaybe<OrderBy>;
|
||||||
|
user?: InputMaybe<UsersOrderBy>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/** select columns of table "auth.user_providers" */
|
||||||
|
export enum AuthUserProvidersSelectColumn {
|
||||||
|
/** column name */
|
||||||
|
Id = 'id',
|
||||||
|
/** column name */
|
||||||
|
ProviderId = 'providerId'
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Streaming cursor of the table "authUserProviders" */
|
||||||
|
export type AuthUserProvidersStreamCursorInput = {
|
||||||
|
/** Stream column input with initial value */
|
||||||
|
initial_value: AuthUserProvidersStreamCursorValueInput;
|
||||||
|
/** cursor ordering */
|
||||||
|
ordering?: InputMaybe<CursorOrdering>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/** Initial value of the column from where the streaming should start */
|
||||||
|
export type AuthUserProvidersStreamCursorValueInput = {
|
||||||
|
id?: InputMaybe<Scalars['uuid']>;
|
||||||
|
providerId?: InputMaybe<Scalars['String']>;
|
||||||
|
};
|
||||||
|
|
||||||
/** User webauthn security keys. Don't modify its structure as Hasura Auth relies on it to function properly. */
|
/** User webauthn security keys. Don't modify its structure as Hasura Auth relies on it to function properly. */
|
||||||
export type AuthUserSecurityKeys = {
|
export type AuthUserSecurityKeys = {
|
||||||
__typename?: 'authUserSecurityKeys';
|
__typename?: 'authUserSecurityKeys';
|
||||||
@@ -930,6 +997,10 @@ export type QueryRoot = {
|
|||||||
authRefreshToken?: Maybe<AuthRefreshTokens>;
|
authRefreshToken?: Maybe<AuthRefreshTokens>;
|
||||||
/** fetch data from the table: "auth.refresh_tokens" */
|
/** fetch data from the table: "auth.refresh_tokens" */
|
||||||
authRefreshTokens: Array<AuthRefreshTokens>;
|
authRefreshTokens: Array<AuthRefreshTokens>;
|
||||||
|
/** fetch data from the table: "auth.user_providers" using primary key columns */
|
||||||
|
authUserProvider?: Maybe<AuthUserProviders>;
|
||||||
|
/** fetch data from the table: "auth.user_providers" */
|
||||||
|
authUserProviders: Array<AuthUserProviders>;
|
||||||
/** fetch data from the table: "auth.user_security_keys" using primary key columns */
|
/** fetch data from the table: "auth.user_security_keys" using primary key columns */
|
||||||
authUserSecurityKey?: Maybe<AuthUserSecurityKeys>;
|
authUserSecurityKey?: Maybe<AuthUserSecurityKeys>;
|
||||||
/** fetch data from the table: "auth.user_security_keys" */
|
/** fetch data from the table: "auth.user_security_keys" */
|
||||||
@@ -971,6 +1042,20 @@ export type QueryRootAuthRefreshTokensArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export type QueryRootAuthUserProviderArgs = {
|
||||||
|
id: Scalars['uuid'];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export type QueryRootAuthUserProvidersArgs = {
|
||||||
|
distinct_on?: InputMaybe<Array<AuthUserProvidersSelectColumn>>;
|
||||||
|
limit?: InputMaybe<Scalars['Int']>;
|
||||||
|
offset?: InputMaybe<Scalars['Int']>;
|
||||||
|
order_by?: InputMaybe<Array<AuthUserProvidersOrderBy>>;
|
||||||
|
where?: InputMaybe<AuthUserProvidersBoolExp>;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
export type QueryRootAuthUserSecurityKeyArgs = {
|
export type QueryRootAuthUserSecurityKeyArgs = {
|
||||||
id: Scalars['uuid'];
|
id: Scalars['uuid'];
|
||||||
};
|
};
|
||||||
@@ -1066,6 +1151,12 @@ export type SubscriptionRoot = {
|
|||||||
authRefreshTokens: Array<AuthRefreshTokens>;
|
authRefreshTokens: Array<AuthRefreshTokens>;
|
||||||
/** fetch data from the table in a streaming manner: "auth.refresh_tokens" */
|
/** fetch data from the table in a streaming manner: "auth.refresh_tokens" */
|
||||||
authRefreshTokens_stream: Array<AuthRefreshTokens>;
|
authRefreshTokens_stream: Array<AuthRefreshTokens>;
|
||||||
|
/** fetch data from the table: "auth.user_providers" using primary key columns */
|
||||||
|
authUserProvider?: Maybe<AuthUserProviders>;
|
||||||
|
/** fetch data from the table: "auth.user_providers" */
|
||||||
|
authUserProviders: Array<AuthUserProviders>;
|
||||||
|
/** fetch data from the table in a streaming manner: "auth.user_providers" */
|
||||||
|
authUserProviders_stream: Array<AuthUserProviders>;
|
||||||
/** fetch data from the table: "auth.user_security_keys" using primary key columns */
|
/** fetch data from the table: "auth.user_security_keys" using primary key columns */
|
||||||
authUserSecurityKey?: Maybe<AuthUserSecurityKeys>;
|
authUserSecurityKey?: Maybe<AuthUserSecurityKeys>;
|
||||||
/** fetch data from the table: "auth.user_security_keys" */
|
/** fetch data from the table: "auth.user_security_keys" */
|
||||||
@@ -1124,6 +1215,27 @@ export type SubscriptionRootAuthRefreshTokensStreamArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export type SubscriptionRootAuthUserProviderArgs = {
|
||||||
|
id: Scalars['uuid'];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export type SubscriptionRootAuthUserProvidersArgs = {
|
||||||
|
distinct_on?: InputMaybe<Array<AuthUserProvidersSelectColumn>>;
|
||||||
|
limit?: InputMaybe<Scalars['Int']>;
|
||||||
|
offset?: InputMaybe<Scalars['Int']>;
|
||||||
|
order_by?: InputMaybe<Array<AuthUserProvidersOrderBy>>;
|
||||||
|
where?: InputMaybe<AuthUserProvidersBoolExp>;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export type SubscriptionRootAuthUserProvidersStreamArgs = {
|
||||||
|
batch_size: Scalars['Int'];
|
||||||
|
cursor: Array<InputMaybe<AuthUserProvidersStreamCursorInput>>;
|
||||||
|
where?: InputMaybe<AuthUserProvidersBoolExp>;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
export type SubscriptionRootAuthUserSecurityKeyArgs = {
|
export type SubscriptionRootAuthUserSecurityKeyArgs = {
|
||||||
id: Scalars['uuid'];
|
id: Scalars['uuid'];
|
||||||
};
|
};
|
||||||
@@ -1444,6 +1556,8 @@ export type Users = {
|
|||||||
/** An array relationship */
|
/** An array relationship */
|
||||||
securityKeys: Array<AuthUserSecurityKeys>;
|
securityKeys: Array<AuthUserSecurityKeys>;
|
||||||
updatedAt: Scalars['timestamptz'];
|
updatedAt: Scalars['timestamptz'];
|
||||||
|
/** An array relationship */
|
||||||
|
userProviders: Array<AuthUserProviders>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -1472,6 +1586,16 @@ export type UsersSecurityKeysArgs = {
|
|||||||
where?: InputMaybe<AuthUserSecurityKeysBoolExp>;
|
where?: InputMaybe<AuthUserSecurityKeysBoolExp>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/** User account information. Don't modify its structure as Hasura Auth relies on it to function properly. */
|
||||||
|
export type UsersUserProvidersArgs = {
|
||||||
|
distinct_on?: InputMaybe<Array<AuthUserProvidersSelectColumn>>;
|
||||||
|
limit?: InputMaybe<Scalars['Int']>;
|
||||||
|
offset?: InputMaybe<Scalars['Int']>;
|
||||||
|
order_by?: InputMaybe<Array<AuthUserProvidersOrderBy>>;
|
||||||
|
where?: InputMaybe<AuthUserProvidersBoolExp>;
|
||||||
|
};
|
||||||
|
|
||||||
/** Boolean expression to filter rows from the table "auth.users". All fields are combined with a logical 'AND'. */
|
/** Boolean expression to filter rows from the table "auth.users". All fields are combined with a logical 'AND'. */
|
||||||
export type UsersBoolExp = {
|
export type UsersBoolExp = {
|
||||||
_and?: InputMaybe<Array<UsersBoolExp>>;
|
_and?: InputMaybe<Array<UsersBoolExp>>;
|
||||||
@@ -1498,6 +1622,7 @@ export type UsersBoolExp = {
|
|||||||
refreshTokens?: InputMaybe<AuthRefreshTokensBoolExp>;
|
refreshTokens?: InputMaybe<AuthRefreshTokensBoolExp>;
|
||||||
securityKeys?: InputMaybe<AuthUserSecurityKeysBoolExp>;
|
securityKeys?: InputMaybe<AuthUserSecurityKeysBoolExp>;
|
||||||
updatedAt?: InputMaybe<TimestamptzComparisonExp>;
|
updatedAt?: InputMaybe<TimestamptzComparisonExp>;
|
||||||
|
userProviders?: InputMaybe<AuthUserProvidersBoolExp>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Ordering options when selecting data from "auth.users". */
|
/** Ordering options when selecting data from "auth.users". */
|
||||||
@@ -1523,6 +1648,7 @@ export type UsersOrderBy = {
|
|||||||
refreshTokens_aggregate?: InputMaybe<AuthRefreshTokensAggregateOrderBy>;
|
refreshTokens_aggregate?: InputMaybe<AuthRefreshTokensAggregateOrderBy>;
|
||||||
securityKeys_aggregate?: InputMaybe<AuthUserSecurityKeysAggregateOrderBy>;
|
securityKeys_aggregate?: InputMaybe<AuthUserSecurityKeysAggregateOrderBy>;
|
||||||
updatedAt?: InputMaybe<OrderBy>;
|
updatedAt?: InputMaybe<OrderBy>;
|
||||||
|
userProviders_aggregate?: InputMaybe<AuthUserProvidersAggregateOrderBy>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** select columns of table "auth.users" */
|
/** select columns of table "auth.users" */
|
||||||
|
|||||||
70
examples/react-apollo/src/profile/connect-socials.tsx
Normal file
70
examples/react-apollo/src/profile/connect-socials.tsx
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
import { gql } from '@apollo/client'
|
||||||
|
import { Card, Group, Title } from '@mantine/core'
|
||||||
|
import { useProviderLink } from '@nhost/react'
|
||||||
|
import { useAuthQuery } from '@nhost/react-apollo'
|
||||||
|
import { useEffect } from 'react'
|
||||||
|
import { FaGithub } from 'react-icons/fa'
|
||||||
|
import { useSearchParams } from 'react-router-dom'
|
||||||
|
import AuthLink from 'src/components/AuthLink'
|
||||||
|
import { AuthUserProviders } from 'src/generated'
|
||||||
|
import { showNotification } from '@mantine/notifications'
|
||||||
|
|
||||||
|
export const ConnectSocials: React.FC = () => {
|
||||||
|
let [searchParams, setSearchParams] = useSearchParams()
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const error = searchParams.get('error')
|
||||||
|
const errorDescription = searchParams.get('errorDescription')
|
||||||
|
|
||||||
|
if (error === 'bad-request' && errorDescription === 'social user already exists') {
|
||||||
|
showNotification({
|
||||||
|
color: 'red',
|
||||||
|
title: 'Bad request',
|
||||||
|
message: 'Social user already exists'
|
||||||
|
})
|
||||||
|
|
||||||
|
searchParams.delete('error')
|
||||||
|
searchParams.delete('errorDescription')
|
||||||
|
|
||||||
|
setSearchParams(searchParams)
|
||||||
|
}
|
||||||
|
}, [searchParams, setSearchParams])
|
||||||
|
|
||||||
|
const { github } = useProviderLink({
|
||||||
|
connect: true,
|
||||||
|
redirectTo: `${window.location.origin}/profile`
|
||||||
|
})
|
||||||
|
|
||||||
|
const AUTH_USER_PROVIDERS = gql`
|
||||||
|
query getAuthUserProviders {
|
||||||
|
authUserProviders {
|
||||||
|
id
|
||||||
|
providerId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
||||||
|
const { data } = useAuthQuery<{
|
||||||
|
authUserProviders: AuthUserProviders[]
|
||||||
|
}>(AUTH_USER_PROVIDERS, {
|
||||||
|
pollInterval: 5000,
|
||||||
|
fetchPolicy: 'cache-and-network'
|
||||||
|
})
|
||||||
|
|
||||||
|
const isGithubConnected = data?.authUserProviders?.some((item) => item.providerId === 'github')
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Card shadow="sm" p="lg" m="sm">
|
||||||
|
<Title style={{ marginBottom: '1rem' }}>Connect with social providers</Title>
|
||||||
|
{!isGithubConnected ? (
|
||||||
|
<AuthLink leftIcon={<FaGithub />} link={github} color="#333" disabled={isGithubConnected}>
|
||||||
|
Connect with GitHub
|
||||||
|
</AuthLink>
|
||||||
|
) : (
|
||||||
|
<Group>
|
||||||
|
<FaGithub /> <span>Github connected</span>
|
||||||
|
</Group>
|
||||||
|
)}
|
||||||
|
</Card>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -4,6 +4,7 @@ import { useHasuraClaims, useNhostClient, useUserData } from '@nhost/react'
|
|||||||
|
|
||||||
import { ChangeEmail } from './change-email'
|
import { ChangeEmail } from './change-email'
|
||||||
import { ChangePassword } from './change-password'
|
import { ChangePassword } from './change-password'
|
||||||
|
import { ConnectSocials } from './connect-socials'
|
||||||
import { Mfa } from './mfa'
|
import { Mfa } from './mfa'
|
||||||
import { SecurityKeys } from './security-keys'
|
import { SecurityKeys } from './security-keys'
|
||||||
|
|
||||||
@@ -14,6 +15,7 @@ export const ProfilePage: React.FC = () => {
|
|||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<Title>Profile page</Title>
|
<Title>Profile page</Title>
|
||||||
|
<ConnectSocials />
|
||||||
<SecurityKeys />
|
<SecurityKeys />
|
||||||
<Mfa />
|
<Mfa />
|
||||||
<ChangeEmail />
|
<ChangeEmail />
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# @nhost-examples/react-gqty
|
# @nhost-examples/react-gqty
|
||||||
|
|
||||||
|
## 1.1.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [311374e]
|
||||||
|
- @nhost/react@3.3.2
|
||||||
|
|
||||||
## 1.1.1
|
## 1.1.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/react-gqty",
|
"name": "@nhost-examples/react-gqty",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -1,5 +1,18 @@
|
|||||||
# @nhost-examples/vue-apollo
|
# @nhost-examples/vue-apollo
|
||||||
|
|
||||||
|
## 0.5.0
|
||||||
|
|
||||||
|
### Minor Changes
|
||||||
|
|
||||||
|
- 311374e: feat: add example of how to connect a social auth provider to an existing account
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [311374e]
|
||||||
|
- @nhost/vue@2.4.0
|
||||||
|
- @nhost/nhost-js@3.0.10
|
||||||
|
- @nhost/apollo@6.1.2
|
||||||
|
|
||||||
## 0.4.1
|
## 0.4.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -46,3 +46,15 @@ object_relationships:
|
|||||||
- name: user
|
- name: user
|
||||||
using:
|
using:
|
||||||
foreign_key_constraint_on: user_id
|
foreign_key_constraint_on: user_id
|
||||||
|
select_permissions:
|
||||||
|
- role: user
|
||||||
|
permission:
|
||||||
|
columns:
|
||||||
|
- access_token
|
||||||
|
- id
|
||||||
|
- provider_id
|
||||||
|
- refresh_token
|
||||||
|
filter:
|
||||||
|
user_id:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
comment: ""
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/vue-apollo",
|
"name": "@nhost-examples/vue-apollo",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.4.1",
|
"version": "0.5.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
|||||||
@@ -1,10 +1,32 @@
|
|||||||
<template>
|
<template>
|
||||||
<div className="d-flex align-center flex-column">
|
<div className="d-flex align-center flex-column">
|
||||||
<v-card width="400">
|
<v-card width="400" class="mb-2">
|
||||||
<v-card-title>Profile page</v-card-title>
|
<v-card-title>Profile page</v-card-title>
|
||||||
<v-card-text> {{ userEmail }} </v-card-text>
|
<v-card-text> {{ userEmail }} </v-card-text>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|
||||||
|
<v-card width="400">
|
||||||
|
<v-card-text>
|
||||||
|
<v-btn
|
||||||
|
class="my-1"
|
||||||
|
block
|
||||||
|
variant="text"
|
||||||
|
prepend-icon="mdi-github"
|
||||||
|
color="white"
|
||||||
|
style="background-color: #333"
|
||||||
|
:href="github"
|
||||||
|
v-if="!isGithubConnected"
|
||||||
|
>
|
||||||
|
Connect with GitHub
|
||||||
|
</v-btn>
|
||||||
|
|
||||||
|
<span v-if="isGithubConnected">
|
||||||
|
<v-icon>mdi-github</v-icon>
|
||||||
|
Github connected {{ isGithubConnected }}
|
||||||
|
</span>
|
||||||
|
</v-card-text>
|
||||||
|
</v-card>
|
||||||
|
|
||||||
<v-card width="400" class="mt-2 pa-4">
|
<v-card width="400" class="mt-2 pa-4">
|
||||||
<v-card-title>Add Security Key</v-card-title>
|
<v-card-title>Add Security Key</v-card-title>
|
||||||
|
|
||||||
@@ -83,6 +105,17 @@
|
|||||||
>
|
>
|
||||||
|
|
||||||
<error-snack-bar v-model="showRemoveKeyError"></error-snack-bar>
|
<error-snack-bar v-model="showRemoveKeyError"></error-snack-bar>
|
||||||
|
|
||||||
|
<error-snack-bar v-model="showConnectProviderError" title="Bad request"
|
||||||
|
><span class="text-white"></span
|
||||||
|
></error-snack-bar>
|
||||||
|
|
||||||
|
<v-snackbar v-model="showConnectProviderError" vertical>
|
||||||
|
<div class="pb-2 text-subtitle-1">Bad request</div>
|
||||||
|
|
||||||
|
<p>Social user already exists</p>
|
||||||
|
</v-snackbar>
|
||||||
|
|
||||||
<v-snackbar v-model="showRemoveKeyError">
|
<v-snackbar v-model="showRemoveKeyError">
|
||||||
Could not remove key
|
Could not remove key
|
||||||
<template #actions>
|
<template #actions>
|
||||||
@@ -105,11 +138,27 @@ import {
|
|||||||
} from '@nhost/vue'
|
} from '@nhost/vue'
|
||||||
import { useMutation, useQuery } from '@vue/apollo-composable'
|
import { useMutation, useQuery } from '@vue/apollo-composable'
|
||||||
import { ref, unref, computed } from 'vue'
|
import { ref, unref, computed } from 'vue'
|
||||||
|
import { useProviderLink } from '@nhost/vue'
|
||||||
|
import { useRoute, useRouter } from 'vue-router'
|
||||||
|
import { onMounted } from 'vue'
|
||||||
|
|
||||||
const email = ref('')
|
const email = ref('')
|
||||||
const password = ref('')
|
const password = ref('')
|
||||||
const nickname = ref('')
|
const nickname = ref('')
|
||||||
const successSnackBar = ref(false)
|
const successSnackBar = ref(false)
|
||||||
|
const showConnectProviderError = ref(false)
|
||||||
|
|
||||||
|
const router = useRouter()
|
||||||
|
const route = useRoute()
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
const errorDescription = route.query.errorDescription
|
||||||
|
|
||||||
|
if (errorDescription === 'social user already exists') {
|
||||||
|
showConnectProviderError.value = true
|
||||||
|
router.replace({ query: undefined })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
const userId = useUserId()
|
const userId = useUserId()
|
||||||
const userEmail = useUserEmail()
|
const userEmail = useUserEmail()
|
||||||
@@ -123,6 +172,19 @@ const { changeEmail, isLoading: isChangeEmailLoading } = useChangeEmail()
|
|||||||
const { changePassword, isLoading: isChangePasswordLoading } = useChangePassword()
|
const { changePassword, isLoading: isChangePasswordLoading } = useChangePassword()
|
||||||
const { elevated, elevateEmailSecurityKey } = useElevateSecurityKeyEmail()
|
const { elevated, elevateEmailSecurityKey } = useElevateSecurityKeyEmail()
|
||||||
const { add } = useAddSecurityKey()
|
const { add } = useAddSecurityKey()
|
||||||
|
const { github } = useProviderLink({
|
||||||
|
connect: true,
|
||||||
|
redirectTo: `${window.location.origin}/profile`
|
||||||
|
})
|
||||||
|
|
||||||
|
const AUTH_USER_PROVIDERS = gql`
|
||||||
|
query getAuthUserProviders {
|
||||||
|
authUserProviders {
|
||||||
|
id
|
||||||
|
providerId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
||||||
const SECURITY_KEYS_LIST = gql`
|
const SECURITY_KEYS_LIST = gql`
|
||||||
query securityKeys($userId: uuid!) {
|
query securityKeys($userId: uuid!) {
|
||||||
@@ -141,6 +203,14 @@ const REMOVE_SECURITY_KEY = gql`
|
|||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
const { result: authUserProvidersQueryResult } = useQuery(AUTH_USER_PROVIDERS)
|
||||||
|
|
||||||
|
const isGithubConnected = computed(() =>
|
||||||
|
authUserProvidersQueryResult.value?.authUserProviders.some(
|
||||||
|
(item: any) => item.providerId === 'github'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
const { result: securityKeys, refetch } = useQuery(SECURITY_KEYS_LIST, { userId }, {})
|
const { result: securityKeys, refetch } = useQuery(SECURITY_KEYS_LIST, { userId }, {})
|
||||||
const { mutate: removeKey } = useMutation(REMOVE_SECURITY_KEY)
|
const { mutate: removeKey } = useMutation(REMOVE_SECURITY_KEY)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
# @nhost-examples/vue-quickstart
|
# @nhost-examples/vue-quickstart
|
||||||
|
|
||||||
|
## 0.1.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [311374e]
|
||||||
|
- @nhost/vue@2.4.0
|
||||||
|
- @nhost/apollo@6.1.2
|
||||||
|
|
||||||
## 0.1.1
|
## 0.1.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost-examples/vue-quickstart",
|
"name": "@nhost-examples/vue-quickstart",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @nhost/apollo
|
# @nhost/apollo
|
||||||
|
|
||||||
|
## 6.1.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- @nhost/nhost-js@3.0.10
|
||||||
|
|
||||||
## 6.1.1
|
## 6.1.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/apollo",
|
"name": "@nhost/apollo",
|
||||||
"version": "6.1.1",
|
"version": "6.1.2",
|
||||||
"description": "Nhost Apollo Client library",
|
"description": "Nhost Apollo Client library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
# @nhost/react-apollo
|
# @nhost/react-apollo
|
||||||
|
|
||||||
|
## 10.0.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [311374e]
|
||||||
|
- @nhost/react@3.3.2
|
||||||
|
- @nhost/apollo@6.1.2
|
||||||
|
|
||||||
## 10.0.1
|
## 10.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/react-apollo",
|
"name": "@nhost/react-apollo",
|
||||||
"version": "10.0.1",
|
"version": "10.0.2",
|
||||||
"description": "Nhost React Apollo client",
|
"description": "Nhost React Apollo client",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# @nhost/react-urql
|
# @nhost/react-urql
|
||||||
|
|
||||||
|
## 7.0.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [311374e]
|
||||||
|
- @nhost/react@3.3.2
|
||||||
|
|
||||||
## 7.0.1
|
## 7.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/react-urql",
|
"name": "@nhost/react-urql",
|
||||||
"version": "7.0.1",
|
"version": "7.0.2",
|
||||||
"description": "Nhost React URQL client",
|
"description": "Nhost React URQL client",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -135,7 +135,7 @@
|
|||||||
"semver@<5.7.2": ">=5.7.2",
|
"semver@<5.7.2": ">=5.7.2",
|
||||||
"semver@>=6.0.0 <6.3.1": ">=6.3.1",
|
"semver@>=6.0.0 <6.3.1": ">=6.3.1",
|
||||||
"semver@>=7.0.0 <7.5.2": ">=7.5.2",
|
"semver@>=7.0.0 <7.5.2": ">=7.5.2",
|
||||||
"follow-redirects@<1.15.4": ">=1.15.4"
|
"follow-redirects@>1.15.6": ">=1.15.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
# @nhost/hasura-auth-js
|
# @nhost/hasura-auth-js
|
||||||
|
|
||||||
|
## 2.4.0
|
||||||
|
|
||||||
|
### Minor Changes
|
||||||
|
|
||||||
|
- 311374e: fix: ensure that the user remains signed in even after being redirected with an error following an attempt to connect with a social provider
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 1623e9b: chore: update `@simplewebauthn/browser` to `9.0.1`
|
||||||
|
|
||||||
## 2.3.1
|
## 2.3.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/hasura-auth-js",
|
"name": "@nhost/hasura-auth-js",
|
||||||
"version": "2.3.1",
|
"version": "2.4.0",
|
||||||
"description": "Hasura-auth client",
|
"description": "Hasura-auth client",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
"docgen": "pnpm typedoc && docgen --config ./auth.docgen.json"
|
"docgen": "pnpm typedoc && docgen --config ./auth.docgen.json"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@simplewebauthn/browser": "^6.2.2",
|
"@simplewebauthn/browser": "^9.0.1",
|
||||||
"fetch-ponyfill": "^7.1.0",
|
"fetch-ponyfill": "^7.1.0",
|
||||||
"jose": "^5.2.2",
|
"jose": "^5.2.2",
|
||||||
"js-cookie": "^3.0.5",
|
"js-cookie": "^3.0.5",
|
||||||
|
|||||||
@@ -19,11 +19,12 @@ import {
|
|||||||
addSecurityKeyPromise,
|
addSecurityKeyPromise,
|
||||||
changeEmailPromise,
|
changeEmailPromise,
|
||||||
changePasswordPromise,
|
changePasswordPromise,
|
||||||
|
elevateEmailSecurityKeyPromise,
|
||||||
resetPasswordPromise,
|
resetPasswordPromise,
|
||||||
sendVerificationEmailPromise,
|
sendVerificationEmailPromise,
|
||||||
signInAnonymousPromise,
|
signInAnonymousPromise,
|
||||||
signInEmailPasswordPromise,
|
|
||||||
signInEmailPasswordlessPromise,
|
signInEmailPasswordlessPromise,
|
||||||
|
signInEmailPasswordPromise,
|
||||||
signInEmailSecurityKeyPromise,
|
signInEmailSecurityKeyPromise,
|
||||||
signInMfaTotpPromise,
|
signInMfaTotpPromise,
|
||||||
signInPATPromise,
|
signInPATPromise,
|
||||||
@@ -31,8 +32,7 @@ import {
|
|||||||
signInSmsPasswordlessPromise,
|
signInSmsPasswordlessPromise,
|
||||||
signOutPromise,
|
signOutPromise,
|
||||||
signUpEmailPasswordPromise,
|
signUpEmailPasswordPromise,
|
||||||
signUpEmailSecurityKeyPromise,
|
signUpEmailSecurityKeyPromise
|
||||||
elevateEmailSecurityKeyPromise
|
|
||||||
} from './promises'
|
} from './promises'
|
||||||
import { createPATPromise } from './promises/createPAT'
|
import { createPATPromise } from './promises/createPAT'
|
||||||
import {
|
import {
|
||||||
@@ -42,6 +42,8 @@ import {
|
|||||||
ChangeEmailResponse,
|
ChangeEmailResponse,
|
||||||
ChangePasswordParams,
|
ChangePasswordParams,
|
||||||
ChangePasswordResponse,
|
ChangePasswordResponse,
|
||||||
|
ConnectProviderParams,
|
||||||
|
ConnectProviderResponse,
|
||||||
DeanonymizeParams,
|
DeanonymizeParams,
|
||||||
DeanonymizeResponse,
|
DeanonymizeResponse,
|
||||||
JWTClaims,
|
JWTClaims,
|
||||||
@@ -54,8 +56,8 @@ import {
|
|||||||
SecurityKey,
|
SecurityKey,
|
||||||
SendVerificationEmailParams,
|
SendVerificationEmailParams,
|
||||||
SendVerificationEmailResponse,
|
SendVerificationEmailResponse,
|
||||||
SignInPATResponse,
|
|
||||||
SignInParams,
|
SignInParams,
|
||||||
|
SignInPATResponse,
|
||||||
SignInResponse,
|
SignInResponse,
|
||||||
SignOutResponse,
|
SignOutResponse,
|
||||||
SignUpParams,
|
SignUpParams,
|
||||||
@@ -132,6 +134,43 @@ export class HasuraAuthClient {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use `nhost.auth.connectProvider` to connect a social authentication provider to an existing user account
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* ### Connect an authentication provider to an existing user account
|
||||||
|
* ```ts
|
||||||
|
* nhost.auth.connectProvider({
|
||||||
|
* provider: 'github
|
||||||
|
* options: {
|
||||||
|
* redirectTo: window.location.href
|
||||||
|
* }
|
||||||
|
* })
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* @docs https://docs.nhost.io/reference/javascript/auth/connect-provider
|
||||||
|
*/
|
||||||
|
async connectProvider(params: ConnectProviderParams): Promise<ConnectProviderResponse> {
|
||||||
|
const interpreter = await this.waitUntilReady()
|
||||||
|
const accessToken = interpreter.getSnapshot().context.accessToken.value
|
||||||
|
|
||||||
|
const { provider, options } = params
|
||||||
|
|
||||||
|
const providerUrl = encodeQueryParameters(
|
||||||
|
`${this._client.backendUrl}/signin/provider/${provider}`,
|
||||||
|
rewriteRedirectTo(this._client.clientUrl, {
|
||||||
|
...options,
|
||||||
|
connect: accessToken
|
||||||
|
} as any)
|
||||||
|
)
|
||||||
|
|
||||||
|
if (isBrowser()) {
|
||||||
|
window.location.href = providerUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
return { providerUrl }
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use `nhost.auth.signIn` to sign in a user using email and password, passwordless (email or sms) or an external provider. `signIn` can be used to sign in a user in various ways depending on the parameters.
|
* Use `nhost.auth.signIn` to sign in a user using email and password, passwordless (email or sms) or an external provider. `signIn` can be used to sign in a user in various ways depending on the parameters.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -960,15 +960,19 @@ export const createAuthMachine = ({
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const error = getParameterByName('error')
|
const error = getParameterByName('error')
|
||||||
|
const errorDescription = getParameterByName('errorDescription')
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
return Promise.reject<NhostSessionResponse>({
|
if (errorDescription !== 'social user already exists') {
|
||||||
session: null,
|
return Promise.reject<NhostSessionResponse>({
|
||||||
error: {
|
session: null,
|
||||||
status: VALIDATION_ERROR_CODE,
|
error: {
|
||||||
error,
|
status: VALIDATION_ERROR_CODE,
|
||||||
message: getParameterByName('errorDescription') || error
|
error,
|
||||||
}
|
message: errorDescription || error
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,6 +67,8 @@ export type SignInWithProviderParams =
|
|||||||
| { provider: Exclude<Provider, 'workos'>; options?: CommonProviderOptions }
|
| { provider: Exclude<Provider, 'workos'>; options?: CommonProviderOptions }
|
||||||
| { provider: 'workos'; options?: WorkOsOptions }
|
| { provider: 'workos'; options?: WorkOsOptions }
|
||||||
|
|
||||||
|
export type ConnectProviderParams = SignInWithProviderParams
|
||||||
|
|
||||||
export type SignInParams =
|
export type SignInParams =
|
||||||
| SignInEmailPasswordParams
|
| SignInEmailPasswordParams
|
||||||
| SignInEmailPasswordOtpParams
|
| SignInEmailPasswordOtpParams
|
||||||
|
|||||||
@@ -60,3 +60,5 @@ export type PasswordlessSmsOtpResponse = NhostSessionResponse
|
|||||||
|
|
||||||
/** payload from hasura-auth endpoint /signin/mfa/totp */
|
/** payload from hasura-auth endpoint /signin/mfa/totp */
|
||||||
export type SignInMfaTotpResponse = NhostSessionResponse
|
export type SignInMfaTotpResponse = NhostSessionResponse
|
||||||
|
|
||||||
|
export type ConnectProviderResponse = { providerUrl?: string }
|
||||||
|
|||||||
@@ -48,7 +48,9 @@ export interface DeanonymizeOptions extends RegistrationOptions {
|
|||||||
password?: string
|
password?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CommonProviderOptions extends RegistrationOptions, RedirectOption {}
|
export interface CommonProviderOptions extends RegistrationOptions, RedirectOption {
|
||||||
|
connect?: boolean
|
||||||
|
}
|
||||||
export interface WorkOsOptions extends CommonProviderOptions {
|
export interface WorkOsOptions extends CommonProviderOptions {
|
||||||
connection?: string
|
connection?: string
|
||||||
organization?: string
|
organization?: string
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# @nhost/nextjs
|
# @nhost/nextjs
|
||||||
|
|
||||||
|
## 2.1.8
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [311374e]
|
||||||
|
- @nhost/react@3.3.2
|
||||||
|
|
||||||
## 2.1.7
|
## 2.1.7
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/nextjs",
|
"name": "@nhost/nextjs",
|
||||||
"version": "2.1.7",
|
"version": "2.1.8",
|
||||||
"description": "Nhost NextJS library",
|
"description": "Nhost NextJS library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
# @nhost/nhost-js
|
# @nhost/nhost-js
|
||||||
|
|
||||||
|
## 3.0.10
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [1623e9b]
|
||||||
|
- Updated dependencies [311374e]
|
||||||
|
- @nhost/hasura-auth-js@2.4.0
|
||||||
|
|
||||||
## 3.0.9
|
## 3.0.9
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/nhost-js",
|
"name": "@nhost/nhost-js",
|
||||||
"version": "3.0.9",
|
"version": "3.0.10",
|
||||||
"description": "Nhost JavaScript SDK",
|
"description": "Nhost JavaScript SDK",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# @nhost/react
|
# @nhost/react
|
||||||
|
|
||||||
|
## 3.3.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 311374e: feat: add `connect` param to `useProviderLink` hook
|
||||||
|
- @nhost/nhost-js@3.0.10
|
||||||
|
|
||||||
## 3.3.1
|
## 3.3.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/react",
|
"name": "@nhost/react",
|
||||||
"version": "3.3.1",
|
"version": "3.3.2",
|
||||||
"description": "Nhost React library",
|
"description": "Nhost React library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import {
|
|||||||
} from '@nhost/nhost-js'
|
} from '@nhost/nhost-js'
|
||||||
import { useContext, useEffect, useState } from 'react'
|
import { useContext, useEffect, useState } from 'react'
|
||||||
import { NhostReactContext } from './provider'
|
import { NhostReactContext } from './provider'
|
||||||
|
import { useAccessToken } from './useAccessToken'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use the hook `useProviderLink` to get an OAuth provider URL that can be used to sign in users.
|
* Use the hook `useProviderLink` to get an OAuth provider URL that can be used to sign in users.
|
||||||
@@ -39,6 +40,7 @@ export const useProviderLink = (options?: ProviderOptions): Record<Provider, str
|
|||||||
* the React/Nextjs context.
|
* the React/Nextjs context.
|
||||||
*/
|
*/
|
||||||
const [isSSR, setIsSSR] = useState(true)
|
const [isSSR, setIsSSR] = useState(true)
|
||||||
|
const accessToken = useAccessToken()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setIsSSR(false)
|
setIsSSR(false)
|
||||||
@@ -48,9 +50,16 @@ export const useProviderLink = (options?: ProviderOptions): Record<Provider, str
|
|||||||
|
|
||||||
return new Proxy({} as Record<Provider, string>, {
|
return new Proxy({} as Record<Provider, string>, {
|
||||||
get(_, provider: string) {
|
get(_, provider: string) {
|
||||||
|
let providerLink = `${nhost.auth.client.backendUrl}/signin/provider/${provider}`
|
||||||
|
|
||||||
|
const connectOptions = options?.connect ? { connect: accessToken } : {}
|
||||||
|
|
||||||
return encodeQueryParameters(
|
return encodeQueryParameters(
|
||||||
`${nhost.auth.client.backendUrl}/signin/provider/${provider}`,
|
providerLink,
|
||||||
rewriteRedirectTo(isSSR ? undefined : nhost.auth.client.clientUrl, options as any)
|
rewriteRedirectTo(isSSR ? undefined : nhost.auth.client.clientUrl, {
|
||||||
|
...options,
|
||||||
|
...connectOptions
|
||||||
|
} as any)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
# @nhost/vue
|
# @nhost/vue
|
||||||
|
|
||||||
|
## 2.4.0
|
||||||
|
|
||||||
|
### Minor Changes
|
||||||
|
|
||||||
|
- 311374e: feat: add `connect` param to `useProviderLink` hook
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- @nhost/nhost-js@3.0.10
|
||||||
|
|
||||||
## 2.3.1
|
## 2.3.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/vue",
|
"name": "@nhost/vue",
|
||||||
"version": "2.3.1",
|
"version": "2.4.0",
|
||||||
"description": "Nhost Vue library",
|
"description": "Nhost Vue library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import {
|
|||||||
} from '@nhost/nhost-js'
|
} from '@nhost/nhost-js'
|
||||||
import { reactive } from 'vue'
|
import { reactive } from 'vue'
|
||||||
import { NestedRefOfValue, nestedUnref } from './helpers'
|
import { NestedRefOfValue, nestedUnref } from './helpers'
|
||||||
|
import { useAccessToken } from './useAccessToken'
|
||||||
import { useNhostClient } from './useNhostClient'
|
import { useNhostClient } from './useNhostClient'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -36,13 +37,21 @@ export const useProviderLink = (
|
|||||||
options?: NestedRefOfValue<ProviderOptions | undefined>
|
options?: NestedRefOfValue<ProviderOptions | undefined>
|
||||||
): Record<Provider, string> => {
|
): Record<Provider, string> => {
|
||||||
const { nhost } = useNhostClient()
|
const { nhost } = useNhostClient()
|
||||||
|
const accessToken = useAccessToken()
|
||||||
|
|
||||||
return reactive(
|
return reactive(
|
||||||
new Proxy({} as Record<Provider, string>, {
|
new Proxy({} as Record<Provider, string>, {
|
||||||
get(_, provider: string) {
|
get(_, provider: string) {
|
||||||
const optionsValue = nestedUnref(options)
|
const optionsValue = nestedUnref(options)
|
||||||
|
|
||||||
|
const connectOptions = optionsValue?.connect ? { connect: accessToken.value } : {}
|
||||||
|
|
||||||
return encodeQueryParameters(
|
return encodeQueryParameters(
|
||||||
`${nhost.auth.client.backendUrl}/signin/provider/${provider}`,
|
`${nhost.auth.client.backendUrl}/signin/provider/${provider}`,
|
||||||
rewriteRedirectTo(nhost.auth.client.clientUrl, optionsValue as any)
|
rewriteRedirectTo(nhost.auth.client.clientUrl, {
|
||||||
|
...optionsValue,
|
||||||
|
...connectOptions
|
||||||
|
} as any)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
103
pnpm-lock.yaml
generated
103
pnpm-lock.yaml
generated
@@ -40,7 +40,7 @@ overrides:
|
|||||||
semver@<5.7.2: '>=5.7.2'
|
semver@<5.7.2: '>=5.7.2'
|
||||||
semver@>=6.0.0 <6.3.1: '>=6.3.1'
|
semver@>=6.0.0 <6.3.1: '>=6.3.1'
|
||||||
semver@>=7.0.0 <7.5.2: '>=7.5.2'
|
semver@>=7.0.0 <7.5.2: '>=7.5.2'
|
||||||
follow-redirects@<1.15.4: '>=1.15.4'
|
follow-redirects@>1.15.6: '>=1.15.6'
|
||||||
|
|
||||||
importers:
|
importers:
|
||||||
|
|
||||||
@@ -580,7 +580,7 @@ importers:
|
|||||||
devDependencies:
|
devDependencies:
|
||||||
mintlify:
|
mintlify:
|
||||||
specifier: ^4.0.128
|
specifier: ^4.0.128
|
||||||
version: 4.0.128
|
version: 4.0.133
|
||||||
|
|
||||||
examples/cli:
|
examples/cli:
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -1592,8 +1592,8 @@ importers:
|
|||||||
packages/hasura-auth-js:
|
packages/hasura-auth-js:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@simplewebauthn/browser':
|
'@simplewebauthn/browser':
|
||||||
specifier: ^6.2.2
|
specifier: ^9.0.1
|
||||||
version: 6.2.2
|
version: 9.0.1
|
||||||
fetch-ponyfill:
|
fetch-ponyfill:
|
||||||
specifier: ^7.1.0
|
specifier: ^7.1.0
|
||||||
version: 7.1.0
|
version: 7.1.0
|
||||||
@@ -2067,7 +2067,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-9anThAaj1dQr6IGmzBMcfzOQKTa5artjuPmw8NYK/fiGEMjADbSguBY2FMDykt+QhilR3wc9VA/3yVju7JHg7Q==}
|
resolution: {integrity: sha512-9anThAaj1dQr6IGmzBMcfzOQKTa5artjuPmw8NYK/fiGEMjADbSguBY2FMDykt+QhilR3wc9VA/3yVju7JHg7Q==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
graphql: '>=16.8.1'
|
graphql: 16.8.1
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/core': 7.24.0
|
'@babel/core': 7.24.0
|
||||||
'@babel/generator': 7.23.6
|
'@babel/generator': 7.23.6
|
||||||
@@ -5885,7 +5885,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-FeKv9lKLMwqDu0pQjPpF59GY3HReUkWXKsMIuMuJQOKh9BETu7zPEFUELvcw8w+lwZkl4ileJsHXC9+AnsT2Lw==}
|
resolution: {integrity: sha512-FeKv9lKLMwqDu0pQjPpF59GY3HReUkWXKsMIuMuJQOKh9BETu7zPEFUELvcw8w+lwZkl4ileJsHXC9+AnsT2Lw==}
|
||||||
engines: {node: '>=16.0.0'}
|
engines: {node: '>=16.0.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
graphql: '>=16.8.1'
|
graphql: 16.8.1
|
||||||
dependencies:
|
dependencies:
|
||||||
'@graphql-tools/utils': 10.1.0(graphql@16.8.1)
|
'@graphql-tools/utils': 10.1.0(graphql@16.8.1)
|
||||||
graphql: 16.8.1
|
graphql: 16.8.1
|
||||||
@@ -6010,7 +6010,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-p28Oh9EcOna6i0yLaCFOnkcBDQECVf3SCexT6ktb86QNj9idnkhI+tCxnwZDh58Qvjd2nURdkbevvoZkvxzCog==}
|
resolution: {integrity: sha512-p28Oh9EcOna6i0yLaCFOnkcBDQECVf3SCexT6ktb86QNj9idnkhI+tCxnwZDh58Qvjd2nURdkbevvoZkvxzCog==}
|
||||||
engines: {node: '>=16.0.0'}
|
engines: {node: '>=16.0.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
graphql: '>=16.8.1'
|
graphql: 16.8.1
|
||||||
dependencies:
|
dependencies:
|
||||||
'@graphql-tools/merge': 9.0.3(graphql@16.8.1)
|
'@graphql-tools/merge': 9.0.3(graphql@16.8.1)
|
||||||
'@graphql-tools/utils': 10.1.0(graphql@16.8.1)
|
'@graphql-tools/utils': 10.1.0(graphql@16.8.1)
|
||||||
@@ -6941,16 +6941,17 @@ packages:
|
|||||||
resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==}
|
resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@mintlify/cli@4.0.128:
|
/@mintlify/cli@4.0.133:
|
||||||
resolution: {integrity: sha512-20CArlOEZf9bxNXlnyl64/lPXvZA4YKBurrj0I0Lhed2vmOgT+p3crGHQHleZOkIEJ/IyH3ycB3Aw+NSt1L61w==}
|
resolution: {integrity: sha512-RRsciqzgKeSXrw4XozTzfyhpX7zxsVGfh+Xdk4zTIKn12m5/sutmSD1W7axXpdWKTxNpvUyIFoU6M743FIB6jw==}
|
||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@apidevtools/swagger-parser': 10.1.0(openapi-types@12.1.3)
|
'@apidevtools/swagger-parser': 10.1.0(openapi-types@12.1.3)
|
||||||
'@mintlify/link-rot': 3.0.141
|
'@mintlify/link-rot': 3.0.144
|
||||||
'@mintlify/models': 0.0.70
|
'@mintlify/models': 0.0.72
|
||||||
'@mintlify/prebuild': 1.0.141
|
'@mintlify/prebuild': 1.0.144
|
||||||
'@mintlify/previewing': 4.0.125
|
'@mintlify/previewing': 4.0.130
|
||||||
'@mintlify/validation': 0.1.127
|
'@mintlify/validation': 0.1.129
|
||||||
chalk: 5.3.0
|
chalk: 5.3.0
|
||||||
detect-port: 1.5.1
|
detect-port: 1.5.1
|
||||||
fs-extra: 11.2.0
|
fs-extra: 11.2.0
|
||||||
@@ -6969,13 +6970,13 @@ packages:
|
|||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@mintlify/common@1.0.73:
|
/@mintlify/common@1.0.76:
|
||||||
resolution: {integrity: sha512-Aae5YJGL5xBx9NOYnOav3zm0YesUoGt0EEIvDVQqGj7LlDG6aR9KA1y031SsfVVyHeC4tbXNLf/5vmv20DnXrw==}
|
resolution: {integrity: sha512-aM+E0u5rLKu+6z64eoCKsvnAB0WziBx+wnRStFrbRdTCSt/LpsSbW+bNdz9AJOQADtiQdS39cLFPUVow7IPi7w==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@apidevtools/swagger-parser': 10.1.0(openapi-types@12.1.3)
|
'@apidevtools/swagger-parser': 10.1.0(openapi-types@12.1.3)
|
||||||
'@mintlify/mdx': 0.0.44
|
'@mintlify/mdx': 0.0.44
|
||||||
'@mintlify/models': 0.0.70
|
'@mintlify/models': 0.0.72
|
||||||
'@mintlify/validation': 0.1.127
|
'@mintlify/validation': 0.1.129
|
||||||
'@sindresorhus/slugify': 2.2.1
|
'@sindresorhus/slugify': 2.2.1
|
||||||
acorn: 8.11.3
|
acorn: 8.11.3
|
||||||
acorn-jsx: 5.3.2(acorn@8.11.3)
|
acorn-jsx: 5.3.2(acorn@8.11.3)
|
||||||
@@ -7018,13 +7019,13 @@ packages:
|
|||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@mintlify/link-rot@3.0.141:
|
/@mintlify/link-rot@3.0.144:
|
||||||
resolution: {integrity: sha512-twAehDvcPP0Y+hVJmPPjiFIxBi7dLpur3w2u2ioLFkviSMT3uQ7o00YyGJNnjbtOq5W+mi2a7CWmGtH72D3PZg==}
|
resolution: {integrity: sha512-uWlQPVzrQN081y8fT+5OUToLijpcA0q8JU2mWPe3upAlX1h7IsREcv/rk4Ce4wg2Eg3aXPsAvoFnTzywhnXpMw==}
|
||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@apidevtools/swagger-parser': 10.1.0(openapi-types@12.1.3)
|
'@apidevtools/swagger-parser': 10.1.0(openapi-types@12.1.3)
|
||||||
'@mintlify/common': 1.0.73
|
'@mintlify/common': 1.0.76
|
||||||
'@mintlify/prebuild': 1.0.141
|
'@mintlify/prebuild': 1.0.144
|
||||||
chalk: 5.3.0
|
chalk: 5.3.0
|
||||||
fs-extra: 11.2.0
|
fs-extra: 11.2.0
|
||||||
gray-matter: 4.0.3
|
gray-matter: 4.0.3
|
||||||
@@ -7055,8 +7056,8 @@ packages:
|
|||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@mintlify/models@0.0.70:
|
/@mintlify/models@0.0.72:
|
||||||
resolution: {integrity: sha512-xeb0UnXmZg+e55osf6NxNUN6pet8f2EJrPQ+1J8EFjlUXSkDRmqxrYfl7eJo40NPLZEhry84Hjcbm8xcgDRZdQ==}
|
resolution: {integrity: sha512-nwwC/PT2ieB7eDFzwB8p8j/rm35dmzvaLf2+1bZiuCmgi3xMcx39QY0HH83lgV98YgUzPs4EvBeAmpwdn4mkdQ==}
|
||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
axios: 1.6.7
|
axios: 1.6.7
|
||||||
@@ -7065,12 +7066,12 @@ packages:
|
|||||||
- debug
|
- debug
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@mintlify/prebuild@1.0.141:
|
/@mintlify/prebuild@1.0.144:
|
||||||
resolution: {integrity: sha512-b7cQDUWZZwOTki1tdnjIrUQeqV7jEoNPq6lGik7HL/gBhQ6p4DMKWVwxQfvCk/1uydLNBZpMTv68rWiS/3C2yw==}
|
resolution: {integrity: sha512-aEdNlK/vfyWQftYGgloDZy5c5G2SN3f3/2XMp1NBqipaG0Y6VQL0pGL1XP/Ksl8Ts+FlDeY+M+Z17qb05FzATA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@apidevtools/swagger-parser': 10.1.0(openapi-types@12.1.3)
|
'@apidevtools/swagger-parser': 10.1.0(openapi-types@12.1.3)
|
||||||
'@mintlify/common': 1.0.73
|
'@mintlify/common': 1.0.76
|
||||||
'@mintlify/validation': 0.1.127
|
'@mintlify/validation': 0.1.129
|
||||||
favicons: 7.1.5
|
favicons: 7.1.5
|
||||||
fs-extra: 11.2.0
|
fs-extra: 11.2.0
|
||||||
gray-matter: 4.0.3
|
gray-matter: 4.0.3
|
||||||
@@ -7085,14 +7086,14 @@ packages:
|
|||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@mintlify/previewing@4.0.125:
|
/@mintlify/previewing@4.0.130:
|
||||||
resolution: {integrity: sha512-Y/m5pxLr+QZPicecEwu9PBtfRv1ilwZUkE5GAVeORa1EFctfP7wrmeLq8xjOisqqAQfahdn328pQdjP86GjRtg==}
|
resolution: {integrity: sha512-BzVgKgQ+xG2CVUiIisQWOnqlq2XxCrpO5vzgoOar5ZBjOrsOVeyKxH06w+s05Zlu/dzX5gE7yc85sTt6BFY2PA==}
|
||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@apidevtools/swagger-parser': 10.1.0(openapi-types@12.1.3)
|
'@apidevtools/swagger-parser': 10.1.0(openapi-types@12.1.3)
|
||||||
'@mintlify/common': 1.0.73
|
'@mintlify/common': 1.0.76
|
||||||
'@mintlify/prebuild': 1.0.141
|
'@mintlify/prebuild': 1.0.144
|
||||||
'@mintlify/validation': 0.1.127
|
'@mintlify/validation': 0.1.129
|
||||||
'@octokit/rest': 19.0.13
|
'@octokit/rest': 19.0.13
|
||||||
chalk: 5.3.0
|
chalk: 5.3.0
|
||||||
chokidar: 3.6.0
|
chokidar: 3.6.0
|
||||||
@@ -7119,10 +7120,10 @@ packages:
|
|||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@mintlify/validation@0.1.127:
|
/@mintlify/validation@0.1.129:
|
||||||
resolution: {integrity: sha512-unPdTch8pJO/ptxerTGbxVbl6o1KXzEX5n9vBcZX04XzbBcPXNqGVxKEnFkh7MSYG3Wv0WeTNKz3WWEaJjeMfg==}
|
resolution: {integrity: sha512-xJ/G9rt0ryDwtRfcWuvkIeqHyfKdin/LEri/mRyS+caY/qACTWtRQBo/W99E++xPOq+ZRe/xppxmajXsTuU8Pg==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@mintlify/models': 0.0.70
|
'@mintlify/models': 0.0.72
|
||||||
lcm: 0.0.3
|
lcm: 0.0.3
|
||||||
lodash: 4.17.21
|
lodash: 4.17.21
|
||||||
openapi-types: 12.1.3
|
openapi-types: 12.1.3
|
||||||
@@ -8753,6 +8754,17 @@ packages:
|
|||||||
|
|
||||||
/@simplewebauthn/browser@6.2.2:
|
/@simplewebauthn/browser@6.2.2:
|
||||||
resolution: {integrity: sha512-VUtne7+s6BmW4usnbitjZEI1VNT/PNh6bYg+AI4OMdfpo5z+yAq+6iVAWBJlIUGVk5InetEQvTUp6OefBam8qg==}
|
resolution: {integrity: sha512-VUtne7+s6BmW4usnbitjZEI1VNT/PNh6bYg+AI4OMdfpo5z+yAq+6iVAWBJlIUGVk5InetEQvTUp6OefBam8qg==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/@simplewebauthn/browser@9.0.1:
|
||||||
|
resolution: {integrity: sha512-wD2WpbkaEP4170s13/HUxPcAV5y4ZXaKo1TfNklS5zDefPinIgXOpgz1kpEvobAsaLPa2KeH7AKKX/od1mrBJw==}
|
||||||
|
dependencies:
|
||||||
|
'@simplewebauthn/types': 9.0.1
|
||||||
|
dev: false
|
||||||
|
|
||||||
|
/@simplewebauthn/types@9.0.1:
|
||||||
|
resolution: {integrity: sha512-tGSRP1QvsAvsJmnOlRQyw/mvK9gnPtjEc5fg2+m8n+QUa+D7rvrKkOYyfpy42GTs90X3RDOnqJgfHt+qO67/+w==}
|
||||||
|
dev: false
|
||||||
|
|
||||||
/@simplewebauthn/typescript-types@6.2.1:
|
/@simplewebauthn/typescript-types@6.2.1:
|
||||||
resolution: {integrity: sha512-qScvkt0nP0Uy/xeeunlXAkJni9wtecsvxwLELSgiWRx/KRVZy1SGDHsKAfQowpIeDmLDyhWxUoN7qUgvgWCiAQ==}
|
resolution: {integrity: sha512-qScvkt0nP0Uy/xeeunlXAkJni9wtecsvxwLELSgiWRx/KRVZy1SGDHsKAfQowpIeDmLDyhWxUoN7qUgvgWCiAQ==}
|
||||||
@@ -12772,6 +12784,7 @@ packages:
|
|||||||
|
|
||||||
/astring@1.8.6:
|
/astring@1.8.6:
|
||||||
resolution: {integrity: sha512-ISvCdHdlTDlH5IpxQJIex7BWBywFWgjJSVdwst+/iQCoEYnyOaQ95+X1JGshuBjGp6nxKUy1jMgE3zPqN7fQdg==}
|
resolution: {integrity: sha512-ISvCdHdlTDlH5IpxQJIex7BWBywFWgjJSVdwst+/iQCoEYnyOaQ95+X1JGshuBjGp6nxKUy1jMgE3zPqN7fQdg==}
|
||||||
|
hasBin: true
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/async-each@1.0.6:
|
/async-each@1.0.6:
|
||||||
@@ -12878,7 +12891,7 @@ packages:
|
|||||||
/axios@1.6.7:
|
/axios@1.6.7:
|
||||||
resolution: {integrity: sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==}
|
resolution: {integrity: sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
follow-redirects: 1.15.5
|
follow-redirects: 1.15.6
|
||||||
form-data: 4.0.0
|
form-data: 4.0.0
|
||||||
proxy-from-env: 1.1.0
|
proxy-from-env: 1.1.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
@@ -14742,6 +14755,7 @@ packages:
|
|||||||
|
|
||||||
/detect-port@1.5.1:
|
/detect-port@1.5.1:
|
||||||
resolution: {integrity: sha512-aBzdj76lueB6uUst5iAs7+0H/oOjqI5D16XUWxlWMIMROhcM0rfsNVk93zTngq1dDNpoXRr++Sus7ETAExppAQ==}
|
resolution: {integrity: sha512-aBzdj76lueB6uUst5iAs7+0H/oOjqI5D16XUWxlWMIMROhcM0rfsNVk93zTngq1dDNpoXRr++Sus7ETAExppAQ==}
|
||||||
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
address: 1.2.2
|
address: 1.2.2
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
@@ -16950,8 +16964,8 @@ packages:
|
|||||||
tslib: 1.14.1
|
tslib: 1.14.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/follow-redirects@1.15.5:
|
/follow-redirects@1.15.6:
|
||||||
resolution: {integrity: sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==}
|
resolution: {integrity: sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==}
|
||||||
engines: {node: '>=4.0'}
|
engines: {node: '>=4.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
debug: '*'
|
debug: '*'
|
||||||
@@ -18789,6 +18803,7 @@ packages:
|
|||||||
/is-docker@2.2.1:
|
/is-docker@2.2.1:
|
||||||
resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==}
|
resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
hasBin: true
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/is-dom@1.1.0:
|
/is-dom@1.1.0:
|
||||||
@@ -19713,6 +19728,7 @@ packages:
|
|||||||
|
|
||||||
/katex@0.16.9:
|
/katex@0.16.9:
|
||||||
resolution: {integrity: sha512-fsSYjWS0EEOwvy81j3vRA8TEAhQhKiqO+FQaKWp0m39qwOzHVBgAUBIXWj1pB+O2W3fIpNa6Y9KSKCVbfPhyAQ==}
|
resolution: {integrity: sha512-fsSYjWS0EEOwvy81j3vRA8TEAhQhKiqO+FQaKWp0m39qwOzHVBgAUBIXWj1pB+O2W3fIpNa6Y9KSKCVbfPhyAQ==}
|
||||||
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
commander: 8.3.0
|
commander: 8.3.0
|
||||||
dev: true
|
dev: true
|
||||||
@@ -20729,6 +20745,7 @@ packages:
|
|||||||
|
|
||||||
/mdast@3.0.0:
|
/mdast@3.0.0:
|
||||||
resolution: {integrity: sha512-xySmf8g4fPKMeC07jXGz971EkLbWAJ83s4US2Tj9lEdnZ142UP5grN73H1Xd3HzrdbU5o9GYYP/y8F9ZSwLE9g==}
|
resolution: {integrity: sha512-xySmf8g4fPKMeC07jXGz971EkLbWAJ83s4US2Tj9lEdnZ142UP5grN73H1Xd3HzrdbU5o9GYYP/y8F9ZSwLE9g==}
|
||||||
|
deprecated: '`mdast` was renamed to `remark`'
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/mdn-data@2.0.30:
|
/mdn-data@2.0.30:
|
||||||
@@ -21616,11 +21633,12 @@ packages:
|
|||||||
yallist: 4.0.0
|
yallist: 4.0.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/mintlify@4.0.128:
|
/mintlify@4.0.133:
|
||||||
resolution: {integrity: sha512-jqHjnQ7dvE5mV2Gl8yAuFo5ckG+8KdXKGihOnHDOEPzNdNXl2hkiurCMNFkFLIMih5QZleHHl40lql2jkGt4qw==}
|
resolution: {integrity: sha512-c4axsQP0/pJLV5uDdHO0ISs17ImZmnDH/y3LINPcvhuGAg6yDbZ/PiYm8ljYT7jfhtYFqnH+8p3SG6uDwYYC2g==}
|
||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@mintlify/cli': 4.0.128
|
'@mintlify/cli': 4.0.133
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- debug
|
- debug
|
||||||
@@ -27416,6 +27434,7 @@ packages:
|
|||||||
/uvu@0.5.6:
|
/uvu@0.5.6:
|
||||||
resolution: {integrity: sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==}
|
resolution: {integrity: sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
dequal: 2.0.3
|
dequal: 2.0.3
|
||||||
diff: 5.2.0
|
diff: 5.2.0
|
||||||
|
|||||||
Reference in New Issue
Block a user