diff --git a/deno.json b/deno.json index 066bdc7..e1ec7ad 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@mycore/mycore", - "version": "1.0.6", + "version": "1.0.0", "license": "GPL-3.0", "homepage": "https://www.mycore.de", "repository": "https://github.com/MyCoRe-Org/mycore-js.git", diff --git a/src/auth/fetch-jwt.ts b/src/auth/helpers.ts similarity index 98% rename from src/auth/fetch-jwt.ts rename to src/auth/helpers.ts index b496aa7..09389f4 100644 --- a/src/auth/fetch-jwt.ts +++ b/src/auth/helpers.ts @@ -38,7 +38,7 @@ interface MCRJWTResponse { * @throws Will throw an error if the fetch operation fails, if the server response is invalid or unexpected, * or if the login attempt fails. */ -export const fetchJWT = async ( +export const fetchAccessToken = async ( baseUrl: string, params?: Record, ): Promise => { diff --git a/src/auth/index.ts b/src/auth/index.ts index 66e6ccc..a02a324 100644 --- a/src/auth/index.ts +++ b/src/auth/index.ts @@ -21,4 +21,4 @@ * @module */ -export * from './fetch-jwt.ts'; +export * from './helpers.ts';