mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 09:03:15 +00:00
feat: implement JWT authentication and token management in frontend and backend
This commit is contained in:
@@ -16,6 +16,7 @@ const doc = localStorage.getItem('DocsGPTRecentDocs');
|
||||
const preloadedState: { preference: Preference } = {
|
||||
preference: {
|
||||
apiKey: key ?? '',
|
||||
token: localStorage.getItem('authToken') ?? null,
|
||||
prompt:
|
||||
prompt !== null
|
||||
? JSON.parse(prompt)
|
||||
|
||||
Reference in New Issue
Block a user