This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async login({ response, auth, request }) { | |
const { email, password } = request.all() | |
const data = await auth.attempt(email, password) | |
if (data.token) { | |
return response.cookie('token', data.token, { | |
domain: 'mydomain.com', | |
httpOnly: true, | |
secure: true, | |
sameSite: 'Lax', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class AppDelegate extends UIResponder { // eslint-disable-line | |
applicationPerformFetchWithCompletionHandler(application, completionHandler) { | |
console.log('App is running in background') | |
// Check for new data | |
const newData = true | |
// If new data exists, initiate a local notification | |
if (newData) { | |
// Let the OS know that there were new data and complete the task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ({ addVariant }) { | |
addVariant('rtl', ({ modifySelectors, separator }) => { | |
modifySelectors(({ className }) => { | |
return `[dir="rtl"] .rtl${separator}${className}` | |
}) | |
}) | |
} |