adminforth 3.2.1-next.3 → 3.2.1-next.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,7 @@ const LS_LANG_KEY = `afLanguage`;
21
21
  const MAX_CONSECUTIVE_EMPTY_RESULTS = 2;
22
22
  const ITEMS_PER_PAGE_LIMIT = 100;
23
23
  const AUTOLOGIN_QUERY_PARAM = 'autologin';
24
+ const START_OAUTH_QUERY_PARAM = 'start_oauth';
24
25
 
25
26
  export function getAutologinCredentials(autologin: unknown): { username: string, password: string } | null {
26
27
  if (typeof autologin !== 'string') {
@@ -117,6 +118,12 @@ export async function redirectToLogin() {
117
118
  if (currentPath !== '/login' && currentPath !== homePagePath) {
118
119
  query.next = next;
119
120
  }
121
+
122
+ const currentQuery = router.currentRoute.value.query;
123
+
124
+ if (START_OAUTH_QUERY_PARAM in currentQuery) {
125
+ query[START_OAUTH_QUERY_PARAM] = (currentQuery[START_OAUTH_QUERY_PARAM] as string) ?? '';
126
+ }
120
127
 
121
128
  await router.push({ name: 'login', query });
122
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "3.2.1-next.3",
3
+ "version": "3.2.1-next.5",
4
4
  "description": "OpenSource Agent-Native forth-generation admin panel",
5
5
  "keywords": [
6
6
  "adminforth",