Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions 24 .github/ISSUE_TEMPLATE/auth_issue.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Arcana Auth SDK Bug Report
description: File an bug report for Arcana Auth SDK
title: "[Auth_SDK_Issuecw]: "
labels: ["docs", "bug", "triage"]
title: '[Auth_SDK_Issuecw]: '
labels: ['docs', 'bug', 'triage']
assignees:
- makylfang
body:
Expand All @@ -26,7 +26,7 @@ body:
required: false
- type: markdown
attributes:
value: "## Create GitHub Issue for Arcana Auth SDK"
value: '## Create GitHub Issue for Arcana Auth SDK'
- type: markdown
attributes:
value: |
Expand All @@ -40,7 +40,7 @@ body:
label: What happened?
description: Describe the scenario and the bug.
placeholder: Tell us what you see!
value: "Something did not work when you tried..."
value: 'Something did not work when you tried...'
validations:
required: true
- type: textarea
Expand All @@ -49,24 +49,24 @@ body:
label: Expected Behavior
description: Tell us, what did you expect to happen?
placeholder: Tell us about the expected behavior!
value: "This error should show up or this value should be returned, etc."
value: 'This error should show up or this value should be returned, etc.'
validations:
required: true
- type: markdown
attributes:
value: "## Help us Recreate the Bug"
value: '## Help us Recreate the Bug'
- type: textarea
id: steps
attributes:
label: List the Steps
description: Describe how to reproduce the bug step by step.
placeholder: Details
value: |
1. Do this...
2. Next do this...
3. ...
1. Do this...
2. Next do this...
3. ...
validations:
required: true
required: true
- type: markdown
attributes:
value: |
Expand All @@ -86,9 +86,9 @@ body:
* What's the version of React Native / Vue / JavaScript / TypeScript you're using in your dApp?
* Does this issue show up on iOS, Android or both mobileplatforms?
* Are you using Mac, Linux or Windows desktop platform?
* Which browser / version you were using to access the Dashboard?
* Which browser / version you were using to access the Dashboard?
validations:
required: false
required: false
- type: input
id: contact
attributes:
Expand Down
91 changes: 45 additions & 46 deletions 91 .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on:
on:
pull_request:
branches:
- dev
Expand All @@ -13,65 +13,64 @@ on:
- 'feature/*'

jobs:

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up NodeJS
uses: actions/setup-node@v3
with:
node-version: 16.0
- name: Install dependencies
run: npm install
- name: Run linters
uses: wearerequired/lint-action@v2
with:
eslint: true
prettier: true
prettier_dir: src/
eslint_dir: src/
eslint_extensions: js,ts
- name: Checkout
uses: actions/checkout@v2
- name: Set up NodeJS
uses: actions/setup-node@v3
with:
node-version: 16.0
- name: Install dependencies
run: npm install
- name: Run linters
uses: wearerequired/lint-action@v2
with:
eslint: true
prettier: true
prettier_dir: src/
eslint_dir: src/
eslint_extensions: js,ts

test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up NodeJS
uses: actions/setup-node@v3
with:
node-version: 16.0
- name: Install dependencies
run: npm install
- name: Test
run: npm test
- name: Upload test coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: /coverage/cobertura-coverage.xml
fail_ci_if_error: true
verbose: true
- name: Checkout
uses: actions/checkout@v2
- name: Set up NodeJS
uses: actions/setup-node@v3
with:
node-version: 16.0
- name: Install dependencies
run: npm install
- name: Test
run: npm test
- name: Upload test coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: /coverage/cobertura-coverage.xml
fail_ci_if_error: true
verbose: true

build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up NodeJS
uses: actions/setup-node@v3
with:
node-version: 16.0
- name: Install dependencies
run: npm install
- name: Build
run: npm run build --if-present
- name: Checkout
uses: actions/checkout@v2
- name: Set up NodeJS
uses: actions/setup-node@v3
with:
node-version: 16.0
- name: Install dependencies
run: npm install
- name: Build
run: npm run build --if-present

branch-name:
runs-on: ubuntu-latest
name: Check branch name
name: Check branch name
steps:
- uses: deepakputhraya/action-branch-name@master
with:
Expand Down
2 changes: 1 addition & 1 deletion 2 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The following authentication mechanisms are supported:

- Passwordless authentication

Application developers can choose to use plug and play feature of the Auth SDK that provides a default UI for user login. Alternatively, they can build their own UI and simply call the Auth SDK functions for social login and passwordless authentication.
Application developers can choose to use plug and play feature of the Auth SDK that provides a default UI for user login. Alternatively, they can build their own UI and simply call the Auth SDK functions for social login and passwordless authentication.

# 💪 Key Features

Expand Down
13 changes: 8 additions & 5 deletions 13 babel.config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"plugins":[
["@babel/plugin-transform-react-jsx", {
"pragma": "h"
}]
{
"plugins": [
[
"@babel/plugin-transform-react-jsx",
{
"pragma": "h"
}
]
],
"presets": [
["@babel/preset-env", { "targets": { "node": "current" } }],
Expand Down
146 changes: 72 additions & 74 deletions 146 examples/index.html
Original file line number Diff line number Diff line change
@@ -1,84 +1,82 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Auth example</title>
</head>

<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Auth example</title>
</head>

<body>
<h1>Auth Example</h1>
<div class="x-container">
<main>
<div class="flex">
<div class="operations">
<button class="btn" onclick="connect()">Connect</button>
<button class="btn" onclick="reconnect()">Reconnect</button>
<button class="btn" onclick="canReconnect()">Can Reconnect?</button>
<button class="btn" onclick="socialLogin()">
Login with google
</button>
<button class="btn" onclick="linkLogin()">Login with link</button>
<button class="btn" onclick="showWallet()">Show wallet</button>
<button class="btn" onclick="getAccounts()">Get Accounts</button>
<button class="btn" onclick="getSelfPublicKey()">
Get Public Key
</button>
<button class="btn" onclick="addChain()">Add Chain</button>
<button class="btn" onclick="switchChain()">Switch Chain</button>
<button class="btn" onclick="addToken()">Add Token</button>
<!-- <button class="btn" onclick="getPublicKey()">Get other's Public Key</button> -->
<button class="btn" onclick="sign()">Request signature</button>
<!-- <button class="btn" onclick="encrypt()">Do encryption</button> -->
<!-- <button class="btn" onclick="ethDecrypt()">Request decryption</button> -->
<button class="btn" onclick="personalSign()">
Personal signature
</button>
<button class="btn" onclick="signTyped()">Sign Typed</button>
<button class="btn" onclick="sendTransaction()">
Send Transaction
</button>
<button class="btn" onclick="signTransaction()">
Sign Transaction
</button>
<button class="btn" onclick="logout()">Logout</button>
</div>
<div class="view-window">
<h2 class="section-heading">STATUS</h2>
<div class="pill">
<span class="sub-heading">Current account: </span>
<span class="sub-value" id="account">-</span>
<br />
</div>
<div class="pill">
<span class="sub-heading">REQ: </span>
<span class="sub-value" id="request">-</span>
<br />
<body>
<h1>Auth Example</h1>
<div class="x-container">
<main>
<div class="flex">
<div class="operations">
<button class="btn" onclick="connect()">Connect</button>
<button class="btn" onclick="reconnect()">Reconnect</button>
<button class="btn" onclick="canReconnect()">Can Reconnect?</button>
<button class="btn" onclick="socialLogin()">
Login with google
</button>
<button class="btn" onclick="linkLogin()">Login with link</button>
<button class="btn" onclick="showWallet()">Show wallet</button>
<button class="btn" onclick="getAccounts()">Get Accounts</button>
<button class="btn" onclick="getSelfPublicKey()">
Get Public Key
</button>
<button class="btn" onclick="addChain()">Add Chain</button>
<button class="btn" onclick="switchChain()">Switch Chain</button>
<button class="btn" onclick="addToken()">Add Token</button>
<!-- <button class="btn" onclick="getPublicKey()">Get other's Public Key</button> -->
<button class="btn" onclick="sign()">Request signature</button>
<!-- <button class="btn" onclick="encrypt()">Do encryption</button> -->
<!-- <button class="btn" onclick="ethDecrypt()">Request decryption</button> -->
<button class="btn" onclick="personalSign()">
Personal signature
</button>
<button class="btn" onclick="signTyped()">Sign Typed</button>
<button class="btn" onclick="sendTransaction()">
Send Transaction
</button>
<button class="btn" onclick="signTransaction()">
Sign Transaction
</button>
<button class="btn" onclick="logout()">Logout</button>
</div>
<div class="pill">
<span class="sub-heading">RESULT: </span>
<span class="sub-value" id="result">-</span>
<br />
</div>
<hr />
<!-- <div class="pill" v-if="error">
<div class="view-window">
<h2 class="section-heading">STATUS</h2>
<div class="pill">
<span class="sub-heading">Current account: </span>
<span class="sub-value" id="account">-</span>
<br />
</div>
<div class="pill">
<span class="sub-heading">REQ: </span>
<span class="sub-value" id="request">-</span>
<br />
</div>
<div class="pill">
<span class="sub-heading">RESULT: </span>
<span class="sub-value" id="result">-</span>
<br />
</div>
<hr />
<!-- <div class="pill" v-if="error">
<div class="error">
<span>-</span>
</div> -->
<!-- <br /> -->
<!-- </div> -->
<!-- <div class="pill">
<!-- <br /> -->
<!-- </div> -->
<!-- <div class="pill">
<input type="text" placeholder="User Input" v-model="input" />
</div> -->
</div>
</div>
</div>
</main>
</div>
<script src="../dist/standalone/auth.umd.js"></script>
<script src="./index.js"></script>
</body>

</html>
</main>
</div>
<script src="../dist/standalone/auth.umd.js"></script>
<script src="./index.js"></script>
</body>
</html>
9 changes: 5 additions & 4 deletions 9 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^29.0.3",
"typedoc": "^0.24.8",
"typedoc-plugin-extras": "^2.2.3",
"typedoc": "^0.25.7",
"typedoc-plugin-extras": "^3.0.0",
"typedoc-plugin-markdown": "^3.12.1",
"typedoc-plugin-rename-defaults": "^0.6.6",
"typedoc-theme-hierarchy": "^4.1.1",
"typedoc-plugin-missing-exports": "^2.1.0",
"typedoc-plugin-rename-defaults": "^0.7.0",
"typedoc-theme-hierarchy": "^4.1.2",
"typescript": "^4.5.2"
},
"dependencies": {
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.