mirror of
https://github.com/janishutz/oidc-login-sdk.git
synced 2026-10-08 17:36:20 +02:00
chore: version bump, script to automate publishing
This commit is contained in:
1 parent
8246f4fdcc
commit
1e4f456063
4 files changed
+14
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@janishutz/oidc-login-sdk-browser",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"description": "SDK to communicate with and log into a backend running express-openid-connect",
|
||||
"homepage": "https://github.com/janishutz/oidc-login-sdk-browser#readme",
|
||||
"bugs": {
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import config from './config.js';
|
||||
|
||||
export const login = ( returnTo?: string ) => {
|
||||
sessionStorage.setItem( 'redirect', location.pathname );
|
||||
location.href = ( config.get().loginEndpoint ?? '/auth/v2/login' ) + returnTo ? returnTo : '';
|
||||
location.href = ( config.get().loginEndpoint ?? '/auth/v2/login' ) + ( returnTo ? returnTo : '' );
|
||||
};
|
||||
|
||||
export const check = async () => {
|
||||
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd browser
|
||||
./build.sh
|
||||
cd dist
|
||||
npm publish
|
||||
|
||||
cd ../../server
|
||||
./build.sh
|
||||
cd dist
|
||||
npm publish
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@janishutz/oidc-login-sdk-server",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"description": "Small wrapper on top of express-openid-connect to work together with my browser sdk",
|
||||
"homepage": "https://github.com/janishutz/oidc-login-sdk-browser#readme",
|
||||
"bugs": {
|
||||
|
||||
Reference in new issue
Block a user