Skip to content

Commit

Permalink
chore: print SDK error contents (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas authored Sep 19, 2023
1 parent f8a77c8 commit 3cdb65d
Show file tree
Hide file tree
Showing 21 changed files with 310 additions and 203 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ build-sdk:
--git-repo-id sdk \
--git-host github.com \
-c ./contrib/sdk/typescript.yml
(cd ./contrib/sdk/generated; npm i; npm run build)
(cd ./contrib/sdk/generated; npm i; npm run build; npm link)
make format
npm i
npm link @ory/client
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ORY Kratos React Native Self-Service UI Reference
# Ory Kratos React Native Self-Service UI Reference

This is an exemplary Self Service UI for
[ORY Kratos](https://github.com/ory/kratos) Self Service features:
[Ory Kratos](https://github.com/ory/kratos) Self Service features:

- Registration
- Login
Expand All @@ -20,12 +20,12 @@ There is an excellent write-up available on implementing
[Mobile Login with Username / Email and Password in React Native](https://www.ory.sh/react-native-authentication-login-signup/)
but if you want to go ahead and just try it out, do the following:

1. Run the [ORY Kratos quickstart](http://ory.sh/docs/kratos/quickstart) on your
1. Run the [Ory Kratos quickstart](http://ory.sh/docs/kratos/quickstart) on your
local machine.
1. Use [`ngrok`](http://ngrok.com) to expose the ORY Kratos public port to the
1. Use [`ngrok`](http://ngrok.com) to expose the Ory Kratos public port to the
public internet (`ngrok http 4433`).
1. Install this project's dependencies with `npm i`.
1. Use the resulting URL and start the environment using
`KRATOS_URL=https://<your-ngrok-id>.ngrok.io npm start`. Please note that the
Web Interface is not working currently due to security features implemented
in ORY Kratos.
in Ory Kratos.
2 changes: 1 addition & 1 deletion app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default (parent = {}) => {
const { env = {} } = process || {}

const {
// This is the URL of your deployment. In our case we use the ORY Demo
// This is the URL of your deployment. In our case we use the Ory Demo
// environment
KRATOS_URL = "https://playground.projects.oryapis.com",

Expand Down
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"expo": {
"name": "ORY Profile App",
"name": "Ory Profile App",
"slug": "kratos-selfservice-ui-react-native",
"scheme": "kratos-selfservice-ui-react-native",
"version": "0.5.14",
Expand Down Expand Up @@ -30,7 +30,7 @@
"favicon": "./assets/favicon.png"
},
"platforms": ["ios", "android", "web"],
"description": "An example app demonstrating login, registration, profile settings, 2fa, account recovery, and more using the ORY Kratos open source project.",
"description": "An example app demonstrating login, registration, profile settings, 2fa, account recovery, and more using the Ory Kratos open source project.",
"plugins": ["sentry-expo"],
"hooks": {
"postPublish": [
Expand Down
2 changes: 2 additions & 0 deletions contrib/sdk/typescript.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
npmName: "@ory/client"
npmVersion: v0.0.1
# typescriptThreePlus: true
supportsES6: true
ensureUniqueParams: true
modelPropertyNaming: original
disallowAdditionalPropertiesIfNotPresent: false
withInterfaces: false
useSingleRequestParameter: true
2 changes: 1 addition & 1 deletion openapitools.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "6.4.0"
"version": "5.4.0"
}
}
168 changes: 104 additions & 64 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3cdb65d

Please sign in to comment.